Guest User

Untitled

a guest
Jun 20th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function($){
  2.  
  3.     $.fn.extend({
  4.        
  5.         showDate:function(){
  6.             $(this).children("#date").animate({left:'+=500', duration:'slow',easing:'easOutBounce'},1000,"", this.showTitle);
  7.         },
  8.         showTitle:function(){
  9.             $(this).children("#title").animate({left:'+=500', duration:'slow',easing:'easOutBounce'},1000,"", this.description);
  10.         },
  11.         showDescription:function(){
  12.             $(this).children("#description").animate({left:'+=500', duration:'slow',easing:'easOutBounce'},1000);
  13.         },
  14.         fly: function(){
  15.             //move all elements off to left
  16.             $(this).children().each(function(){
  17.                 $(this).css("left","-500px");
  18.             });
  19.            
  20.             //move each element in turn
  21.             this.showDate();
  22.         },
  23.        
  24.        
  25.         //This is where you write your plugin's name
  26.         flyingframe: function() {
  27.             //Iterate over the current set of matched elements
  28.             this.each(function() {
  29.                
  30.             });
  31.             $(this).css("position", "relative");
  32.             return this;
  33.         }
  34.     });
  35. })($);
Add Comment
Please, Sign In to add comment