]> _ Git - Animations.git/commitdiff
wait #2463 ajout version EN
authornael <nael@cubedesigners.com>
Fri, 21 Dec 2018 10:16:04 +0000 (11:16 +0100)
committernael <nael@cubedesigners.com>
Fri, 21 Dec 2018 10:16:04 +0000 (11:16 +0100)
Fluidbook-presentation-quotes/p4/index.html
Fluidbook-presentation-quotes/p4/main.js
Fluidbook-presentation-quotes/p4/style.sass

index a713d86ebea5b0219102de7f067325a261520d74..37ebdbd43b8bf7ee952c58784b9e716b6bd94808 100644 (file)
@@ -9,13 +9,13 @@
 <canvas id="canvas" width="601" height="779"></canvas>
 
 <div class="container">
-    <!--<img src="bg.png" alt="">-->
+    <!--<img src="bg2.png" alt="">-->
 
     <div class="all">
         <div class="inset"></div>
-        <p class="title">Nous sommes fiers de notre application et
-            nous souhaitons continuer à offrir la meilleure
-            solution qui soit</p>
+        <p class="title">We are proud of our application and we
+        put all our effort into delivering the best
+        solution on the market.</p>
     </div>
     <img class="quote1" src="src/quote1.svg" alt="">
     <img class="quote2" src="src/quotes2.svg" alt="">
index c50b3dd4003510cf802527066e489cd3f6779e80..de4979bd1cea371400e52e001c6ded43bc69dcd2 100644 (file)
@@ -1,20 +1,20 @@
 // Wrap every letter in a span
 $('.title').each(function(){
-    $(this).html($(this).text().replace(/([^\x00-\x80]|\w)/g, "<span class='letter'>$&</span>"));
+    $(this).html($(this).text().replace(/([^a-z]|[^\x00-\x80]|\w)/g, "<span class='letter'>$&</span>"));
 });
 
 let title = document.getElementsByClassName('title');
 let letter = document.getElementsByClassName('letter');
 let br = document.createElement("br");
 
-var arrIndexes = [35, 76];
+var arrIndexes = [41, 90];
 $(letter).filter(function(index) {
     return arrIndexes.indexOf(index) > -1;
 }).prepend(br);
 
 let tl = new TimelineMax();
- tl.from('.quote1',1,{opacity:0,top:460});
- tl.from('.quote2',1,{opacity:0,top:520},'+=4.8');
+ tl.from('.quote1',1,{opacity:0,top:484});
+ tl.from('.quote2',1,{opacity:0,top:540},'+=6.3');
 
  let tl2 = new TimelineMax();
  tl2.from('.all',1,{opacity:0},'+=1');
index 7cc2d95df9d7a733bdfabbfedf888bfdc6ba85ed..0c2277deb49597927c035fddbab23cf4b6b163f0 100644 (file)
@@ -17,10 +17,11 @@ $fontcolor: #19344D
   line-height: 1.10
   color: $fontcolor
   opacity: 1!important
+  width: 500px
 
 .all
   position: absolute
-  top: 478px
+  top: 496px
   left: 80px
 .inset
   float: left
@@ -31,10 +32,10 @@ $fontcolor: #19344D
 .quote1
   position: absolute
   width: 20px
-  top: 487px
+  top: 504px
   left: 84px
 .quote2
   position: absolute
   width: 20px
-  top: 542px
-  left: 243px
+  top: 560px
+  left: 303px