background preloader


Related:  mood ring

D3.js - Data-Driven Documents jquery/jquery-color: jQuery plugin for color manipulation and animation support. CSS3 Animate It - Animate Elements on Scroll Sequencing If you want to have a set of animations start one after the other then you can set a sequence time in ms using "data-sequence" then define the order with "data-id". <div class='animatedParent' data-sequence='500'><h2 class='animated bounceInDown' data-id='1'>It Works! Offset This will make the make the CSS animation either start before or after it has entered the viewport by the specified ammount. <div class='animatedParent'data-appear-top-offset='-300'><h2 class='animated bounceInDown'>It Works! Animate Once Adding this will make sure the item only animates once and will not reset when it leaves the viewport. <div class='animatedParent animateOnce'><h2 class='animated bounceInDown'>It Works! Animation Speed Currently you can define 4 speeds, the default which requires nothing then slow, slower and slowest. <div class='animatedParent'><h2 class='animated bounceInDown slowest'>It Works! Delay (New) <div class='animatedParent'><h2 class='animated bounceInDown delay-250'>It Works! IE Fix

Creating Vue.js Transitions & Animations In a rush? Skip to tutorial & live demo. My last two projects hurled me into the JAMstack. SPAs, headless content management, static generation... you name it. More importantly, they gave me the opportunity to learn Vue.js. These two apps were my last projects for Spektrum. We decided I'd start by sharing what I've learned working with Vue. Part 1? I've prepared live demos on CodePen, code snippets, and an open source GitHub repo for you guys. So let's get into it! Vue.js "transformations"—context Disclaimer: this post digs into Vue.js and the tools it offers with its transition system. Animations & transitions. Even for those of us who are drawn to the field by an urge to create intricate micro-interactions and smooth page transitions, it quickly becomes difficult to reason about our work, given the need to rely on CSS for performance purposes. This is where frameworks like Vue.js step in, taking the guess-work and clumsy chains of setTimeout functions out of transitions. 1. 1.1 Lists 2.

Move.js - CSS3 animation framework for JavaScript Move.js is a small JavaScript library making CSS3 backed animation extremely simple and elegant. Move#set(prop, val) Set prop to val. Play move('#example-1 .box') .set('margin-left', 200) .end(); Move#add(prop, val) Increment prop by val, where val is an Number (click several times). move('#example-2 .box') .add('margin-left', 200) .end(); Move#sub(prop, val) Decrement prop by val, where val is an Number (click several times). move('#example-3 .box') .sub('margin-left', 100) .end(); Move#rotate(deg) Rotate by deg. move('#example-4 .box') .rotate(140) .end(); Move#duration(n) Set animation duration to n which is a Number or a string such as "4s". move('#example-5 .box') .set('background-color', 'blue') .duration('2s') .end(); Move#translate(x[, y]) Translate x and optionally y axis. move('#example-6 .box') .translate(300, 80) .end(); Move#x(n) / Move#y(n) Translate x or y axis. move('#example-7 .box') .x(300) .y(20) .end(); Move#skew(x[, y]) Skew x, and optionally y. Move#scale(x[, y]) Move#ease(fn) default in

Zoom sur l'effet parallaxe Après avoir abordé les arrière-plans extensibles (full background) nous allons continuer avec l'effet parallaxe. Cet effet graphique étant facile à comprendre et à mettre en place, vous allez pouvoir créer rapidement un site original. Ce tutoriel va utiliser jQuery ainsi que le plug-in jQuery-Parallax. Qu'est-ce que l'effet parallaxe ? Il s'agit d'un terme générique correspondant au déplacement de plusieurs éléments sur des couches et à des vitesses différentes. Au scroll (défilement de la vue) ou en fonction des coordonnées de la souris, les positions des différents fonds (ou éléments à animer) vont changer, ce qui va générer un effet de profondeur. Des exemples Utilisant le positionnement de la souris Utilisant le niveau du scroll driver-club Principe et théorie Grâce à l'utilisation de JavaScript, il est possible de déplacer les éléments par rapport à la position de la souris ou du niveau de défilement (scroll). En pratique

chroma.js api docs! chroma.js is a tiny JavaScript library (12kB) for dealing with colors! Quick-start Here are a couple of things chroma.js can do for you: read colors from a wide range of formatsanalyze and manipulate colorsconvert colors into wide range of formatslinear and bezier interpolation in different color spaces Here's an example for a simple read / manipulate / output chain: Aside from that, chroma.js can also help you generate nice colors using various methods, for instance to be used in color palette for maps or data visualizations. chroma.js has a lot more to offer, but that's the basic gist of it. chroma The first step is to get your color into chroma.js. If there's no matching named color chroma.js checks for a hexadecimal string. In addition to hex strings, hexadecimal numbers (in fact, just any number between 0 and 16777215), will be recognized, too. If you pass the RGB channels individually, too. chroma.hsl chroma.hsv chroma.lab chroma.lch L: Lightness, c: chroma (0-1), h: hue (0-1). chroma.hcl color

mpalpha/animate-scroll Adding Transition Effects - vue.js With Vue.js’ transition hooks you can apply automatic transition effects when elements are inserted into or removed from the DOM. There are three options to implement transitions with Vue.js: CSS transitions, CSS animations, and JavaScript functions. All Vue.js transitions are triggered only if the DOM manipulation was applied by Vue.js, either through built-in directives, e.g. v-if, or through ViewModel instance methods, e.g. vm.$appendTo(). CSS Transitions To enable CSS transitions on an element, simply give it an empty v-transition directive: You will also need to provide CSS rules for v-enter and v-leave classes (the class names can be configured with Vue.config()): Now when the show property changes, Vue.js will insert or remove the <p> element accordingly, and apply transition classes as specified below: It is important to ensure that the target element’s CSS transition rules are properly set and it will fire a transitionend event. CSS Animations Look at me! JavaScript Functions

airbnb/javascript: JavaScript Style Guide