Skip to content

heuuLZP/baseEncapsulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

baseEncapsulation

js基础封装库

示例

 animate(elem,{width: 400,backgroundColor:'rgb(255, 192, 203)',opacity: 1,zIndex: 2},'easeOut',300,function (){
        console.log('动画完成');
    })

设置滚动高度scrollTop

animate(document.documentElement || document.body,{scrollTop: 600},'easeOut',300,function (){
    console.log('动画完成');
})

注意事项:此时要注意是否有定位,body应该有自己的高度。

参考

css进阶 原生js getComputedStyle等方法解析

About

js基础封装库

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published