PHP中文网-QQ群-扫二维码

QQ群

PHP中文网-关注微信公众号-扫二维码

微信公众号

当前位置:php中文网下载站 >js特效 >html5特效 >HTML5 Canvas的多款星空背景动画特效

HTML5 Canvas的多款星空背景动画特效

2018-02-05 来源/作者:php中文网 分类:html5特效 «» 下载次数:6
HTML5 Canvas的多款星空背景动画特效

$( document ).ready( function() {
//------------------------------------------------------------------------

//Settings - params for WarpDrive
var settings = {

width: 480,
height: 480,
autoResize: false,
autoResizeMinWidth: null,
autoResizeMaxWidth: null,
autoResizeMinHeight: null,
autoResizeMaxHeight: null,
addMouseControls: true,
addTouchControls: true,
hideContextMenu: true,
starCount: 6666,
starBgCount: 2222,
starBgColor: { r:255, g:255, b:255 },
starBgColorRangeMin: 10,
starBgColorRangeMax: 40,
starColor: { r:255, g:255, b:255 },
starColorRangeMin: 10,
starColorRangeMax: 100,
starfieldBackgroundColor: { r:0, g:0, b:0 },
starDirection: 1,
starSpeed: 20,
starSpeedMax: 200,
starSpeedAnimationDuration: 2,
starFov: 300,
starFovMin: 200,
starFovAnimationDuration: 2,
starRotationPermission: true,
starRotationDirection: 1,
starRotationSpeed: 0.0,
starRotationSpeedMax: 1.0,
starRotationAnimationDuration: 2,
starWarpLineLength: 2.0,
starWarpTunnelDiameter: 100,
starFollowMouseSensitivity: 0.025,
starFollowMouseXAxis: true,
starFollowMouseYAxis: true

};

多款漂亮炫目的通过配置参数进行灵活的配置,可用鼠标进行互动的HTML5 Canvas星空背景动画特效。


申明:PHP中文网下载站匠心打造中国最大的免费下载站!一切资源免费,所有资源都经过检测,请放心下载!

效果预览本地下载  新手使用求助QQ群: