Advertisement
Guest User

ptitim

a guest
Mar 31st, 2015
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // custom theme classes
  2. $(document).ready(function(){
  3.     $('#scene').addClass('sd-slide-background-color_1 sd-world-background-image_1');
  4. });
  5.  
  6. // kinetics
  7. var zoomerInit = new function () {
  8.     this.set = function (s) {
  9.         // location: x,y,z
  10.         // rotation: rx,ry,rz. Use 0-360 to prevent carousel problems
  11.         // width: w (height is calculated as 16*9)
  12.         // reverse: come to the slide from the other direction
  13.         // s.addTarget(x, y, z, rx, ry, rz, width,time);
  14.        
  15.         //s.addTarget(0, 0, 0, 0, 0, 0, 2000); // 1920/2=960
  16.         s.setLocation(90, 90, 50, -90, -180, 0, 180, 000);
  17.  
  18.         s.addTarget(90, 90, 50, -90, -180, 0, 180, 1000, 'Quadratic.Out');        //slide1      
  19.        //s.addGlide(-150, 90, 50, -90, -180, 0, 180, 1000, 'Quadratic.Out');      
  20.    
  21.         //s.addTarget(120, 150, 50, -90, -180, 0, 180, 2500, 'Quadratic.Out');    //slide  
  22.  
  23.         s.addGlide(170, 251, 90, -90, -185, 0, 180, 2200, 'Quadratic.Out');       //slide  
  24.      
  25.         s.addTarget(30, 250, 200, -90, -180, 0, 180, 2000, 'Quadratic.Out');      //slide
  26.  
  27.         s.addTarget(130, 240, 500, -90, -180, 0, 180, 2600, 'Quadratic.Out');     //slide
  28.  
  29.         s.addTarget(100, 180, 560, -90, -180, 0, 180, 2500, 'Quadratic.Out');     //slide        
  30.  
  31.         s.addTarget(100, 110, 600, -90, -180, 0, 180, 2800, 'Quadratic.Out');    //slide  
  32.  
  33.         //s.addTarget(90, 90, 50, -90, -180, 0, 180, 3000, 'Quadratic.Out');      //slide
  34.        
  35.         //s.addTarget(90, 110, 70, -90, -180, 0, 180, 1500, 'Quadratic.Out');     //slide
  36.  
  37.         //s.addTarget(90, 150, 310, -90, -180, 0, 180, 2000, 'Quadratic.Out');    //slide
  38.  
  39.         // var x = 80,
  40.         //     y = 200,
  41.         //     w = 180,
  42.         //     scalar = w / 1920;
  43.         // x = x + 960 + ( (-(1 - scalar) / 2) * 1920);
  44.         // y = y + 540 + ( (-(1 - scalar) / 2) * 1080);
  45.         // console.log('x: ' + Math.round(x) + ' | y: ' + Math.round(y));
  46.  
  47.         // http://sole.github.io/tween.js/examples/03_graphs.html - You use this syntax
  48.         // but refer here http://easings.net/ for general information regarding easings and illustration
  49.  
  50.  
  51.        
  52.    
  53.  
  54.        
  55.     };
  56. } // GLIDE
  57.  
  58. $( document ).ready(function() {
  59.     $("<div id='svg-animation'></div>").load("//resources.emaze.com/vbscenes/kinetics/css/animationSVG.html", null , function(e){
  60.     }).appendTo(document.body);
  61. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement