1/* 2 This file is part of JonDesign's SmoothGallery v2.1beta1. 3 4 AAW: Works with Mootools v1.2.4 @ 14 July 2010. Included with DCG 3.3+ 5 6 JonDesign's SmoothGallery is free software; you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation; either version 3 of the License, or 9 (at your option) any later version. 10 11 JonDesign's SmoothGallery is distributed in the hope that it will be useful, 12 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 GNU General Public License for more details. 15 16 You should have received a copy of the GNU General Public License 17 along with JonDesign's SmoothGallery; if not, write to the Free Software 18 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 20 Main Developer: Jonathan Schemoul (JonDesign: http://www.jondesign.net/) 21*/ 22 23gallery.Transitions.extend({ 24 fadeslideleft: function(oldFx, newFx, oldPos, newPos){ 25 oldFx.options.transition = newFx.options.transition = Fx.Transitions.Cubic.easeOut; 26 oldFx.options.duration = newFx.options.duration = 1500; 27 if (newPos > oldPos) 28 { 29 newFx.start({ 30 left: [this.galleryElement.offsetWidth, 0], 31 opacity: 1 32 }); 33 oldFx.start({opacity: [1,0]}); 34 } else { 35 newFx.start({opacity: [0,1]}); 36 oldFx.start({ 37 left: [0, this.galleryElement.offsetWidth], 38 opacity: 0 39 }).chain(function(fx){fx.set({left: 0});}.pass(oldFx)); 40 } 41 }, 42 continuoushorizontal: function(oldFx, newFx, oldPos, newPos){ 43 oldFx.options.transition = newFx.options.transition = Fx.Transitions.linear; 44 if ( 45 ((newPos > oldPos) || ((newPos==0) && (oldPos == (this.maxIter-1) ))) && 46 (!((newPos == (this.maxIter-1 )) && (oldPos == 0))) 47 ) { 48 oldFx.set({opacity: 1}); 49 oldFx.start({ 50 left: [0, this.galleryElement.offsetWidth * -1] 51 }); 52 newFx.set({opacity: 1, left: this.galleryElement.offsetWidth}); 53 newFx.start({ 54 left: [this.galleryElement.offsetWidth, 0] 55 }); 56 } else { 57 oldFx.set({opacity: 1}); 58 oldFx.start({ 59 left: [0, this.galleryElement.offsetWidth] 60 }); 61 newFx.set({opacity: 1, left: this.galleryElement.offsetWidth * -1}); 62 newFx.start({ 63 left: [this.galleryElement.offsetWidth * -1, 0] 64 }); 65 } 66 }, 67 continuousvertical: function(oldFx, newFx, oldPos, newPos){ 68 oldFx.options.transition = newFx.options.transition = Fx.Transitions.linear; 69 if ( 70 ((newPos > oldPos) || ((newPos==0) && (oldPos == (this.maxIter-1) ))) && 71 (!((newPos == (this.maxIter-1 )) && (oldPos == 0))) 72 ) { 73 oldFx.set({opacity: 1}); 74 oldFx.start({ 75 top: [0, this.galleryElement.offsetHeight * -1] 76 }); 77 newFx.set({opacity: 1, top: this.galleryElement.offsetHeight}); 78 newFx.start({ 79 top: [this.galleryElement.offsetHeight, 0] 80 }); 81 } else { 82 oldFx.set({opacity: 1}); 83 oldFx.start({ 84 top: [0, this.galleryElement.offsetHeight] 85 }); 86 newFx.set({opacity: 1, top: this.galleryElement.offsetHeight * -1}); 87 newFx.start({ 88 top: [this.galleryElement.offsetHeight * -1, 0] 89 }); 90 } 91 } 92});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.