CSS animations engine

Related tags

CSS animatic
Overview
Comments
  • Ability to call css-defined animations (compatibility with animate.css)

    Ability to call css-defined animations (compatibility with animate.css)

    I actually prefer to write animations in css sometimes so it would be handy to be able to use this library to call them. This would allow for a seamless integration with other libraries such as animate.css or magic.

    An example of this functionality can be found in move.js with .animate(..) which I'm currently using but would like to potentially switch over to this one in the future.

    Apologies if this feature already exists but I couldn't find any documentation on it.

    Really neat library btw, looking forward to exploring it a little bit further.

    Thanks

    opened by jschr 11
  • Wrong easings computations?

    Wrong easings computations?

    Hi, I was just trying to mimic an ios7 animation and I don't get a simlar easing (ease- out-expo seems to be the right thing)

    I then took a look at your easing functions (js) and the don't seem to be the same like:

    http://www.gizma.com/easing/

    or

    http://gsgd.co.uk/sandbox/jquery/easing/jquery.easing.1.3.js

    wdyt?

    Best, Oleg

    opened by kof 8
  • New Animation - change width and height

    New Animation - change width and height

    Hello. I just want to simply animate div resize (height and width). Can you add this to your briliant library? I really like your library smooth animations, just missing this one feature.

    enhancement 
    opened by Grzegosz 7
  • events not firing ?

    events not firing ?

    Hi, I tried to use the 'end' event but it doesn't fire :+1:

    $(".box").animate({
                   left:'20%',
                    opacity: .5,
                    duration: 500,
                    ease: 'ease-in-out-quad',
                    delay: 100
                  }).on('end', function(){
                      alert('end');
                  });
    

    What am i missing , please? see live example: http://jsbin.com/pawiho/1/edit?html,console,output

    opened by daslicht 5
  • Raf shim

    Raf shim

    We need a way to use external shims. Currently requestAnimationFrame reference is locally defined. I would recommend you to use https://github.com/kof/animation-frame or at least to provide a way to overwrite raf reference anima uses.

    opened by kof 5
  • Animations do not start in ios7

    Animations do not start in ios7

    Hi

    Just tried your examples on the latest version of ios, both safari and chrome. Nothing happens. No errors. Matrix transformation isn't applied, css transformations do not work too.

    Thanks

    bug 
    opened by kof 5
  • Fix requestAnimationFrame for browsers which have no native raf.

    Fix requestAnimationFrame for browsers which have no native raf.

    Browsers without native raf end up currently in endless loop. I use top instead of window, because there are bugs where animation frame is used inside of an iframe and this stops to work sometimes.

    opened by kof 4
  • Add support for additive animations

    Add support for additive animations

    Let's say I have an object wiggling from left to right and back in a continuous infinite loop:

    myObject.animate({  
        translate : [10,0,0],  // to the right
        duration: 500
    }).animate({  
        translate : [-10,0,0],  // back to origin
        duration: 500
    }).infinite();
    

    and then later, responding to some event, I want to move the whole object a defined distance to the right, without the left-right wiggle ever stopping:

    myButton.onclick = function() {
      myObject.animate({  
          translate : [100,0,0],  // to the right
          duration: 2000
      });
    };
    

    This doesn't work right now:

    http://jsfiddle.net/N2v6H/

    Instead, the ball goes careening off the screen. Re-expressing the wiggle in parallel at the time of the second call doesn't fix things, either:

    ball.stop().animate([{  
       translate : [100,0,0],  // to the right
       duration: 1000
    },{ 
        translate : [10,0,0],  // to the right
        duration: 250
    },{  
        translate : [-10,0,0],  // back to origin
        duration: 250
    }]);
    

    http://jsfiddle.net/N2v6H/1/ (This is also throwing an error because the stop method isn't chainable as it stands, another issue.)

    I think it's pretty clear that the existing behavior isn't useful in any real world context. My sense is that the cleanest solution might be to add an argument to the animate function, specifying whether it adds to existing animations or overwrites them.

    bug enhancement 
    opened by albell 4
  • Anima not working on Opera

    Anima not working on Opera

    Hello. I've got Opera 12.14 on Windows 7. I'm using your library for animate translation and anima works very well, but I got some toubles on Opera. Below you can see errors from error console:

    Uncaught exception: TypeError: '_requestAnimationFrame' is not a function Error thrown at line 743, column 4 in () in http://....../js/anima.js.xhtml: this.frame = _requestAnimationFrame(update); called from line 737, column 4 in World() in http://....../js/anima.js.xhtml: this.init(); called from line 5, column 4 in () in http://....../js/anima.js.xhtml: return new World(); called from line 1046, column 4 in http://....../map.xhtml?windowId=6be: var world = anima.world();

    opened by Grzegosz 3
  • After animation End event, make item do other animation, it will repeat old animation again

    After animation End event, make item do other animation, it will repeat old animation again

    Hello there,

    first sorry my english, but I meet some problem need your help...

    UI animation flow:(like Loop)

    functionA make animation-a -> click butttonA -> make butttonA do animation-A -> on animation-A end event -> call a functionC

    animation-a: make butttonA appear,add end event animation-A: make butttonA disappear,add end event functionC: call functionA again

    but in actually situation,first time(first Loop), when I click button, it will trigger animation-a end event first,then do animation-A, then trigger animation-A end event.

    secend time(second Loop), when I click button, it will trigger animation-a end event twice! then do animation-A twice, then trigger animation-A end event twice...

    third time, when I click button, it will trigger animation-a end event triple! then do animation-A triple, then trigger animation-A end event triple... and so on..

    I couldn't separate animation in the same item object...I don't know why..

    below is my codes:

    function showUI2(){ if(scene2_finished){

        scene2_finished = false;
    
        item3
            .animate({
                opacity:0
            },0)
            .animate({
                translate: [0, -220, 0],
                opacity:0.8
            }, 800, 'ease-in-quat')
            .animate({
                scale: [0.3,0.3, 0]
            }, 500, 'ease-in-out-back');
        backBtn_item
            .animate({
                opacity:0
            },0)
            .animate({
                translate: [0, 30, 0],
                opacity:1
            }, 1300, 'ease-in-quat');
    
        backBtn.addEventListener('click',function(e){
    
            backBtn_clickflag = true;
            e.preventDefault();
    
            item3
                .animate({
                    scale: [-.3, -.3, 0],
                    translate: [0, 220, 0],
                    opacity:0
                }, 600, 'ease-in-out-back');
    
    
            backBtn_item
                .animate({
                    translate: [0, -30, 0],
                    opacity:0
                }, 600, 'ease-in-out-back')
    
                .on('end', after_end());
    
        },false);
    
    }
    

    } function after_end(){ return function () { if(backBtn_clickflag){ backBtn_clickflag =false;

            showUI2();
        }
    }
    

    }

    opened by sevenLee 3
  • Anima ignores element's current opacity

    Anima ignores element's current opacity

    Adding a new item into a world initializes it's opacity to 1 no matter the current value.

    See http://jsfiddle.net/2SpzY/

    Setting the opacity in Item.prototype.init as opacity: this.dom.style.opacity seems to fix it.

    enhancement 
    opened by MichalBures 3
  • translateX, translateY, rotateX, rotateY, etc.

    translateX, translateY, rotateX, rotateY, etc.

    I noticed that in the input example (http://lvivski.com/anima/example/keyboard_mixed.html) you have code to make sure that only one axis is affected at a time:

    a.translate = translate.map(function(t, i) { return t || a.translate[i] })

    It's a functionality that I often need when I'm coding for user interaction. It might be nice if that were built into the library so that a user wouldn't have to do it themselves each time they wanted to affect only a single axis. If there was the option to translate, rotate, scale, etc. for each axis (translateX, scaleY, rotateZ, etc.), it could really help.

    enhancement 
    opened by knod 2
  • Enhancement: Allow the ability to define things like `translate` with a function.

    Enhancement: Allow the ability to define things like `translate` with a function.

    This would allow the animator to do things such as take measurements at the point in time when an animation actually takes place. Example:

    element1.animate({
      translate: function() {
        return [ 0, element2.state.translate[1], 0 ];
      },
      duration: 1000,
      delay: 3000
    });
    
    enhancement 
    opened by andremalkine 2
  • Animate multiples elements of a specific classe?

    Animate multiples elements of a specific classe?

    Hello,

    First of all, thank you for this amazing tool! I have been using it, and It is really great.

    I was wondering if it is possible to animate multiples elements at once, for instance, to animate all div with the class ".xyz".

    I have read the doc, but it seems to only animate a single element, not to apply an animation to multiple elements like it's possible to do in CSS.

    Thank you!

    enhancement 
    opened by kamishi 2
Owner
Yehor Lvivski
team builder and code breaker
Yehor Lvivski
Delightful, performance-focused pure css loading animations.

Loaders.css Delightful and performance-focused pure css loading animations. What is this? See the demo A collection of loading animations written enti

Connor Atherton 10.2k Jan 4, 2023
Apply CSS based on your browser's text rendering engine

Type Rendering Mix Type Rendering Mix website Type Rendering Mix detects your browser’s text rasterizer and antialiasing method by parsing the user ag

Bram Stein 496 Dec 6, 2022
Tiny, composable atomic CSS engine

mapcss Tiny, composable atomic CSS engine ?? This project is currently in beta release. All interfaces are subject to change. What mapcss is an Atomic

Satoshi 11 Dec 21, 2022
Reseter.css - A Futuristic CSS Reset / CSS Normalizer

Reseter.css A CSS Reset/Normalizer Reseter.css is an awesome CSS reset for a website. It is a great tool for any web designer. Reseter.css resets all

Krish Dev DB 1.1k Jan 2, 2023
[ON HOLD] Living Style Guides Engine and Maintenance Environment for Front-end Components. Core repository.

[ON HOLD] SourceJS - Living Style Guide Platform The project been stale for a while and currently is in the [ON HOLD] state until we find new maintain

SourceJS 552 Nov 8, 2022
Express js webserver integration with edgejs templating engine using webpack assets manager and hot reloading

Express js webserver integration with edgejs templating engine using webpack assets manager and hot reloading

Aria Khoshnood 4 Feb 12, 2022
Spectre.css - A Lightweight, Responsive and Modern CSS Framework

Spectre.css Spectre.css is a lightweight, responsive and modern CSS framework. Lightweight (~10KB gzipped) starting point for your projects Flexbox-ba

Yan Zhu 11.1k Jan 8, 2023
Low-level CSS Toolkit – the original Functional/Utility/Atomic CSS library

Basscss Low-level CSS toolkit – the original Functional CSS library https://basscss.com Lightning-Fast Modular CSS with No Side Effects Basscss is a l

Basscss 5.8k Dec 31, 2022
Framework-agnostic CSS-in-JS with support for server-side rendering, browser prefixing, and minimum CSS generation

Aphrodite Framework-agnostic CSS-in-JS with support for server-side rendering, browser prefixing, and minimum CSS generation. Support for colocating y

Khan Academy 5.3k Jan 1, 2023
CSS Boilerplate / Starter Kit: Collection of best-practice CSS selectors

Natural Selection Natural Selection is a CSS framework without any styling at all. It is just a collection of selectors that can be used to define glo

FrontAid CMS 104 Dec 8, 2022
Source code for Chrome/Edge/Firefox/Opera extension Magic CSS (Live editor for CSS, Less & Sass)

Live editor for CSS, Less & Sass (Magic CSS) Extension Live editor for CSS, Less & Sass (Magic CSS) for Google Chrome, Microsoft Edge, Mozilla Firefox

null 210 Dec 13, 2022
Easily create css variables without the need for a css file!

Tailwind CSS Variables This plugin allows you to configure CSS variables in the tailwind.config.js Similar to the tailwindcss configurations you are u

Mert Aşan 111 Dec 22, 2022
Cooltipz.css - A highly customisable, minimal, pure CSS tooltip library

Cooltipz.css - Cool tooltips Cool customisable tooltips made from pure CSS Lightweight • Accessible • Customisable • Simple Cooltipz.css is a pure CSS

Jack Domleo 110 Dec 24, 2022
micro-library for CSS Flexbox and CSS Grid

SpeedGrid micro-library for CSS Flexbox and CSS Grid Overview SpeedGrid dynamically generates inline CSS by specifying the class name. Easy maintenanc

Toshihide Miyake 7 Mar 26, 2022
Data-tip.css - Wow, such tooltip, with pure css!

Notice: hint.css has been much better since I complained about it months ago, so try out its new features instead of this one! data-tip.css Wow, such

EGOIST 117 May 26, 2021
Tiny CSS framework with almost no classes and some pure CSS effects

no.css INTERACTIVE DEMO I am tired of adding classes to style my HTML. I just want to include a .css file and I expect it to style the HTML for me. no

null 96 Dec 10, 2022
The most popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web.

Bootstrap Sleek, intuitive, and powerful front-end framework for faster and easier web development. Explore Bootstrap docs » Report bug · Request feat

Bootstrap 161k Jan 1, 2023
Modern CSS framework based on Flexbox

Bulma Bulma is a modern CSS framework based on Flexbox. Quick install Bulma is constantly in development! Try it out now: NPM npm install bulma or Yar

Jeremy Thomas 46.6k Dec 31, 2022
A utility-first CSS framework for rapid UI development.

A utility-first CSS framework for rapidly building custom user interfaces. Documentation For full documentation, visit tailwindcss.com. Community For

Tailwind Labs 63.5k Dec 30, 2022