Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

alice-animate

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alice-animate

酷炫的 CSS3 动画。

  • 2.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

animate.css


Css 3 动画样式。代码来自:https://github.com/daneden/animate.css


使用说明

官方教程

通过 link 打包引用或使用 seajs.use 引入样式文件,然后绑定对应的 className。

seajs.use(['jquery', 'alice/animate/1.0.0/animate.css'], function($) {
    $('#test').addClass('animated bounceOutLeft');  // bounceOutLeft 可替换成你想要的效果
});

改变动画元素的动画参数。

#yourElement {
    -vendor-animation-duration: 3s;
    -vendor-animation-delay: 2s;
    -vendor-animation-iteration-count: infinite;
}

API

所有 className 在此

演示

以下动画效果在支持css3 animate的高级浏览器中有效。

.animate-obj { display: inline-block; padding: 0 20px; height: 60px; background-color: #112233; border-radius: 6px; opacity: 0.9; color: #fff; line-height: 60px; text-align: center; }
bounceIn
点击触发动画 bounceIn
seajs.use(['jquery', 'index.css'], function($) {
    $('#trigger1').click(function() {
        $('#test1').addClass('animated bounceIn');
    });
});
fadeInUp
点击触发动画 fadeOutRightBig
seajs.use(['jquery', 'index.css'], function($) {
    $('#trigger2').click(function() {
        $('#test2').addClass('animated fadeInUp');
    });
});
rotateInUpRight
点击触发动画 rotateInUpRight
seajs.use(['jquery', 'index.css'], function($) {
    $('#trigger3').click(function() {
        $('#test3').addClass('animated rotateInUpRight');
    });
});
tada
点击触发动画 tada
seajs.use(['jquery', 'index.css'], function($) {
    $('#trigger4').click(function() {
        $('#test4').addClass('animated tada');
    });
});
shake
点击触发动画 shake
seajs.use(['jquery', 'index.css'], function($) {
    $('#trigger5').click(function() {
        $('#test5').addClass('animated shake');
    });
});

FAQs

Package last updated on 08 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc