Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function($){
- $.fn.extend({
- showDate:function(){
- $(this).children("#date").animate({left:'+=500', duration:'slow',easing:'easOutBounce'},1000,"", this.showTitle);
- },
- showTitle:function(){
- $(this).children("#title").animate({left:'+=500', duration:'slow',easing:'easOutBounce'},1000,"", this.description);
- },
- showDescription:function(){
- $(this).children("#description").animate({left:'+=500', duration:'slow',easing:'easOutBounce'},1000);
- },
- fly: function(){
- //move all elements off to left
- $(this).children().each(function(){
- $(this).css("left","-500px");
- });
- //move each element in turn
- this.showDate();
- },
- //This is where you write your plugin's name
- flyingframe: function() {
- //Iterate over the current set of matched elements
- this.each(function() {
- });
- $(this).css("position", "relative");
- return this;
- }
- });
- })($);
Add Comment
Please, Sign In to add comment