Skip to content

beschler/jquery.easing.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

jQuery Easing

Add easing functions to jQuery. Based on easing equations from Robert Penner.

Install

  1. Include jQuery:
<script src="https://code.jquery.com/jquery-3.4.1.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
  1. Include jquery.easing.js below it:
<script src="https://{YOUR_HOST}/jquery.easing.js"></script>

Example Install

<head>
...
<script src="https://code.jquery.com/jquery-3.4.1.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
<script src="https://{YOUR_HOST}/jquery.easing.js"></script>
...
</head>

Usage

$('#el').stop(true, false).animate({
  top: 10px,
  left: 10px
}, 500, 'easeOutCubic');

Reference

About

Add easing functions to jQuery.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published