Skip to content
/ across Public

Css animation library using javascript tool.

Notifications You must be signed in to change notification settings

sdli/across

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

across.js

css3动画库和js控制器

1. 创建动画

您可以在引入across.js后,简单初始化其配置,即可控制动画的开始和结束。使用: loading.startAnimation() 和 loading.stopAnimation();可以用于开启和关闭动画

<script src="across.js"</script>
<script>
	var animations =new NewAcross({
		target:’id’,//id of div or others
		type:’type1’,//animation type code
		gap:200,// single animation time interval
		num:6// amount of animation tags
	});
</script>

动画开始:

loading.startAnimation() 

动画结束:

loading.stopAnimation()

2. 动画库(更新中),详见:预览网址

//加载动画库:
loading.startAnimation();
loadingBall.startAnimation();
nineBall.startAnimation();
ballScales.startAnimation();
spinFades.startAnimation();
semiCircle.startAnimation();
singleRipple.startAnimation();
弹窗动画库:
waiting...

About

Css animation library using javascript tool.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published