All Projects → omariosouto → animusjs

omariosouto / animusjs

Licence: MIT license
🎆 AnimusJS is the solution for combine JS and CSS animations.

Programming Languages

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

Projects that are alternatives of or similar to animusjs

react-scroll-activator
A React Component that watches for a scroll event and triggers behavior
Stars: ✭ 19 (-54.76%)
Mutual labels:  trigger, user-scrolls
aioneframework
Aione Framework: All-in-one lightweight mobile first front-end framework to design websites, web applications, mobile applications, progressive web applications having large number of examples, documentation, tutorials, community support, components.
Stars: ✭ 13 (-69.05%)
Mutual labels:  css-animations, javascript-library
Scrolltrigger
Let your page react to scroll changes.
Stars: ✭ 3,547 (+8345.24%)
Mutual labels:  trigger, user-scrolls
Josh.js
A JavaScript library to animate content on page scroll.
Stars: ✭ 345 (+721.43%)
Mutual labels:  css-animations, javascript-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 (+23.81%)
Mutual labels:  css-animations, javascript-library
Micron
a [μ] microInteraction library built with CSS Animations and controlled by JavaScript Power
Stars: ✭ 2,252 (+5261.9%)
Mutual labels:  css-animations, javascript-library
drone-gitlab-ci
Drone plugin for trigger gitlab-ci jobs.
Stars: ✭ 18 (-57.14%)
Mutual labels:  trigger
node-banner
Easily integrate ASCII flavored banners to your CLI tool
Stars: ✭ 18 (-57.14%)
Mutual labels:  javascript-library
resizerjs
Simple resizing for flexbox
Stars: ✭ 16 (-61.9%)
Mutual labels:  javascript-library
rottenjs
An all-in-one (2.6kb) Javascript library for web development
Stars: ✭ 15 (-64.29%)
Mutual labels:  javascript-library
util.js
Useful JavaScript Functions in Single File
Stars: ✭ 25 (-40.48%)
Mutual labels:  javascript-functions
iFrameX
Iframe generator with dynamic content injection like HTML, Javascript, CSS, etc. and two ways communication, parent <-> iframe.
Stars: ✭ 18 (-57.14%)
Mutual labels:  javascript-library
hexa
Awesome Css Animation. The documentation =>
Stars: ✭ 32 (-23.81%)
Mutual labels:  css-animations
rutils
ruitls.js 涵盖了前端开发常用的工具方法,有字符串、数字、数组、缓存、文件等,尽可能的避免前端在开发中重复造轮子
Stars: ✭ 14 (-66.67%)
Mutual labels:  javascript-library
xGallerify
A lightweight, responsive, smart gallery based on jQuery
Stars: ✭ 52 (+23.81%)
Mutual labels:  javascript-library
consono
The most correct, informative, appealing and configurable variable inspector for JavaScript
Stars: ✭ 17 (-59.52%)
Mutual labels:  javascript-library
Amino.JS
A powerful JavaScript library for interacting with the Amino API 🌟
Stars: ✭ 25 (-40.48%)
Mutual labels:  javascript-library
bitbucket-push-and-pull-request-plugin
Plugin for Jenkins v2.138.2 or later, that triggers job builds on Bitbucket's push and pull request events.
Stars: ✭ 47 (+11.9%)
Mutual labels:  trigger
menu-hamburger
🍔 A clean, simple and easy to use library to create a Menu Hamburger
Stars: ✭ 17 (-59.52%)
Mutual labels:  javascript-library
staballoy
Reactive UI framework for Titanium Alloy
Stars: ✭ 18 (-57.14%)
Mutual labels:  javascript-library

AnimusJS

[DEPRECATED]

A new version of this lib is comming :)

AnimusJS is the solution for combine JS and CSS animations.

With AnimusJS, you can create animations Changing CSS Classes or using JavaScript Functions very easy!

Live Example: http://codepen.io/soutomario/pen/akrwxp?editors=0010

First things first...

npm install animusjs

or

git clone https://github.com/soutomario/animusjs.git

After it you need to include the library

<script src="js/animusjs.min.js"></script>
<script src="https://mariosouto.com/animusjs/js/animusjs.min.js"></script> <!-- Or just import from my website -->

and then you init the magic!

animusjs.init();

Now to see if everything is working, lets create a simple HTML

<img anim-in="active-my-animation" anim-out="active-my-animation" src="placehold.it/1920x1080">
<img anim-in="active-my-animation" anim-out="active-my-animation" src="placehold.it/1920x1080">
<img anim-in="active-my-animation" anim-out="active" src="placehold.it/1920x1080">
<img anim-in="active-my-animation" anim-out="active-my-animation" src="placehold.it/1920x1080">

If you look, we add the anim-in and anim-out parameters, they are used by AnimusJS to trigger your animation.

Well, at this points you just need to create a CSS to make something with the images:

img {
  opacity: 0;
  transform: translateX(-50px);
  transition: .5s ease-in-out;
}
img.active-my-animation {
  opacity: 1;
  transform: translateX(0px);
}

Now when you scroll the page you will see everything animated!

AnimusJS Properties

  • anim-type Define what kind of action you want to trigger. By default the AnimusJs uses anim-type="class", but you can pass anim-type="function" too (In this case a JavaScript function will be called).

  • anim-in Do some action when the users scroll down.

  • anim-out Do some action when the users scroll up.

  • anim-in-out Do some action when you scroll down and call the same action when you scroll up.

If you use a javascript function you have to pass 2 parameters like this example

function active(element, options) {
	if(options.status === 'animate') {
		element.classList.add('active');
	}
	if(options.status === 'reverse') {
		element.classList.remove('active');
	}
}
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].