Skip to content

Class for enabling stop/resume for css3 transitions

Notifications You must be signed in to change notification settings

jlitola/transition

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

transition

Class for enabling stop/resume for css3 transitions.

Usage

Starting transition:

var el = $("img");
var duration = 10000;
var delay = 2000;
var t = new Transition(el, 'transform', 'scale(4)', duration, delay); 

Pausing transition:

t.pause();

Resuming transition:

t.resume();

Toggling pause/resume:

t.toggle();

Requirements

  • JQuery

Tested on

  • Safari
  • Firefox (Mac)
  • Chrome (Mac)

About

Class for enabling stop/resume for css3 transitions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%