All Projects → UstymUkhman → Dynamic.css

UstymUkhman / Dynamic.css

Licence: MIT license
🚀 Awesome Library of CSS3 animations 🎉

Programming Languages

CSS
56736 projects
HTML
75241 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Dynamic.css

Sequents
A simple continuous animation library for iOS UI.
Stars: ✭ 31 (-18.42%)
Mutual labels:  animations, animation-library, animate
Sequent
A simple continuous animation library for Android UI.
Stars: ✭ 263 (+592.11%)
Mutual labels:  animations, animation-library, animate
Vivify
Vivify is free CSS animation library.
Stars: ✭ 1,651 (+4244.74%)
Mutual labels:  css3, css3-animations, animation-library
takefive.css
The most advanced pure CSS lightbox – not one single line of JavaScript has been wasted
Stars: ✭ 123 (+223.68%)
Mutual labels:  css3, css3-animations
css3-animation-generator
chrome plugin css3 animation generator
Stars: ✭ 93 (+144.74%)
Mutual labels:  css3, css3-animations
30diasDeCSS
Desafio criar 30 mini projetos utilizando HTML e CSS em 30 dias, participe também!
Stars: ✭ 38 (+0%)
Mutual labels:  css3, css3-animations
Angular Fx
Angular CSS3 animation directives (ngfx-bounce, ngfx-shake, ngfx-flip, ngfx-pulse and more ...) https://720kb.github.io/angular-fx
Stars: ✭ 181 (+376.32%)
Mutual labels:  animations, animate
react-awesome-loaders
🚀 High quality, super responsive and completely customisable Loading Animations to insert into your website with single line of code.
Stars: ✭ 146 (+284.21%)
Mutual labels:  css3, animation-library
learn-css-animation
Learn CSS animation with fun. It is simple, easy to use, and fun to learn.
Stars: ✭ 54 (+42.11%)
Mutual labels:  css3, animations
Boomjs
JavaScript实现一个有趣的浏览器图片爆炸动画效果
Stars: ✭ 379 (+897.37%)
Mutual labels:  css3, animate
Backbone Responsive Css3 Page Transitions
CSS3 hardware accelerated page transitions optimised for fluid layouts
Stars: ✭ 34 (-10.53%)
Mutual labels:  css3, animations
Landing-Page-Animation
Landing page animation made using CSS
Stars: ✭ 45 (+18.42%)
Mutual labels:  css3, css3-animations
Babypiganimation
基本动画、位移动画、缩放动画、旋转动画、组动画、关键帧动画、贝塞尔曲线、进度条动画、复杂动画、OC动画、aniamtion、basicanimation等。
Stars: ✭ 192 (+405.26%)
Mutual labels:  animations, animation-library
web-animation-club
CSS controlled animations with transitionEnd, onTransitionEnd, animationend, onAnimationEnd events and frame throwing. Tiny javascript library with cross-browser methods to handle css animation/transition callbacks and event loop frame throwing. 📚🖥️📱
Stars: ✭ 52 (+36.84%)
Mutual labels:  css3, animation-library
Animatable Component
Animate once, use Everywhere! 💫
Stars: ✭ 188 (+394.74%)
Mutual labels:  animations, animation-library
css-collection
🧙‍♂️ CSS芸人への道(CSSでつくったもの集)| I want to be CSS Magician
Stars: ✭ 82 (+115.79%)
Mutual labels:  css3, css3-animations
Magic
CSS3 Animations with special effects
Stars: ✭ 7,253 (+18986.84%)
Mutual labels:  css3, css3-animations
Construcao De Paginas Web
Desenvolvimento de páginas semânticas, acessíveis e responsivas. 🚀
Stars: ✭ 113 (+197.37%)
Mutual labels:  css3, animations
Typewriterview
Android library for typewriter like effects
Stars: ✭ 124 (+226.32%)
Mutual labels:  animations, animation-library
Geckolib
GeckoLib is an animation library for Minecraft Mods, with support for complex 3D keyframe and scriptable math-based animations. Available for Forge and Fabric (1.12, 1.15, 1.16). Supports entity, block, item, armor animations and more.
Stars: ✭ 131 (+244.74%)
Mutual labels:  animations, animation-library

Dynamic.css

Awesome Library of CSS3 animations

Dynamic.css build Dynamic.css release Bower version GitHub license

Special thanks to daneden's Animate.css and Christian's magic for inspiration.
You're amazing, guys! 👍

Dynamic.css is a bunch of awesome, cross-browser CSS animations to use in any project.
It's perfect to animate incoming and leaving web page elements, but it also could be useful for sliders, :hover handlers and all kind of general use.

You can try it at this demo page.

Download

You can download it from Bower

bower install UstymUkhman/Dynamic.css

GitHub

git clone https://github.com/UstymUkhman/Dynamic.css.git

or here.

Then just load the script file in your application:

<script type="text/javascript" src="bower_components/Dynamic.css/dist/dynamic.css"></script>

Usage

  1. Include the stylesheet in your document's <head>
<head>
  <link rel="stylesheet" href="path/to/dynamic.css">
  
  <!-- Or, for the minified version: -->
  <link rel="stylesheet" href="path/to/dynamic.min.css">
</head>
  1. Add class dynamic to the element you want to animate.
    You may also want to include the class infinite for an infinite loop.

  2. Than you'll also have to add one of the following classes:

  • jump
  • blink
  • fitIn
  • fitOut
  • windyX
  • windyY
  • spinXUp
  • spinXDown
  • spinYLeft
  • spinYRight
  • spinZIn
  • spinZOut
  • materialize
  • vaporize

  • starWars
  • starWarsFrontUp
  • starWarsFrontDown
  • starWarsBackUp
  • starWarsBackDown

  • comeInLeft
  • comeInUp
  • comeInDown
  • comeInRight
  • comeOutLeft
  • comeOutUp
  • comeOutDown
  • comeOutRight

  • speedInLeft
  • speedInRight
  • speedOutLeft
  • speedOutRight

  • stairsInLeft
  • stairsIn
  • stairsInRight
  • stairsOutLeft
  • stairsOut
  • stairsOutRight

  • hopInLeft
  • hopIn
  • hopInRight
  • hopOutLeft
  • hopOut
  • hopOutRight

  • rollInLeft
  • rollInRight
  • rollOutLeft
  • rollOutRight

  • rollUpLeft
  • rollUpDown
  • rollUpRight
  • rollDownLeft
  • rollDownUp
  • rollDownRight

  • fallDownIn
  • fallDownOut
  • fallDownLeft
  • fallDownUp
  • fallDownRight

  • roundOutLeft
  • roundOutRight
  • roundSlideLeft
  • roundSlideRight

Once you've decided the animation to run, you have to add the corresponding CSS class via JavaScript (or jQuery) like this:

$('#elementToAnimate').addClass('dynamic jump');

The default animation time for most Dynamic.css animations is 2 seconds. Though, if you're not OK with that, you can overwrite the animation duration of the main class like this:

.dynamic {
  -webkit-animation-duration: 2.5s;
  animation-duration: 2.5s;
}

However, if you don't like the default duration time of a particular animation class, you can simply overwrite relative CSS rules of the animation you'd like to change:

.dynamic.fitOut {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
}

In this way you can also add delays for specific animations:

.dynamic.vaporize {
  -webkit-animation-delay: .5s;
  animation-delay: .5s;
}

Certain thing, you can also use jQuery to detect when the animation is finished to make some other stuff in the callback function:

$('#animatedElement').on('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend',
  function() {
    // ...make some other stuff in the callback function.
});

Extend Dynamic.css

Dynamic.css is powered by grunt, so you can easily extend the library and create custom builds.
First of all, you’ll need Grunt and other dependencies:

$ cd path/to/Dynamic.css/

# If you haven't install NPM globaly, run:
$ sudo npm install

$ sudo npm install grunt --save-dev
$ sudo npm install grunt-contrib-grunt-contrib-concat --save-dev

$ sudo npm install grunt-contrib-grunt-contrib-uglify --save-dev
# Actualy, grunt doesn't minify well CSS files, so you can omit this one,
# but in that case you'll have to minify builded file manualy.

Once you've configured Gruntfile.js, as described here, go back to your terminal and run grunt in the project's folder to compile your custom builds.
The easiest way to update the library, is to add your new animations in the dist.src array of paths.

grunt.initConfig({
  pkg: grunt.file.readJSON('package.json'),

  concat: {
    options: {
      separator: '\n\n',
      banner: mainDesc
    },

    dist: {
      src: [
        'animations/base.css',
        'animations/specials/*.css',
        'animations/star wars/*.css',
        'animations/incomers & leavers/*.css',
        'animations/speedy/*.css',
        'animations/stairs/*.css',
        'animations/jumpers/*.css',
        'animations/rollers/*.css',
        'animations/fallers/*.css',
        'animations/turners/*.css'
        // paths/to/your/files
      ],
      dest: '<%= pkg.filename %>.css'
    }
  }
});

But the most important thing is: have fun like I did! 😊

License

Dynamic.css is licensed under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].