]> _ Git - fluidbook-html5.git/commitdiff
done #3426 @1.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 20 Feb 2020 18:16:51 +0000 (19:16 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 20 Feb 2020 18:16:51 +0000 (19:16 +0100)
js/libs/fluidbook/fluidbook.links.js
style/fluidbook.less

index 90af7588ad4764e9553684b49d752f2e401051e9..714a1c899a9310596ee08d71f1c0366a716fcee2 100644 (file)
@@ -405,7 +405,8 @@ FluidbookLinks.prototype = {
                 align: 'left',
                 letterSpacing: '0',
                 prefix: '',
-                suffix: ''
+                suffix: '',
+                scale: 1,
             };
             animation = $.extend({}, defaultParams, animation);
             animation.startValue = parseFloat(animation.startValue.replace(/,/, '.'));
@@ -433,6 +434,7 @@ FluidbookLinks.prototype = {
                 textAlign: animation.align,
                 letterSpacing: animation.letterSpacing,
                 opacity: 0,
+                transform: "scale(" + animation.scale + ")",
             }
 
             link.css(css);
index 99704595c16c4d479e6795db38c8f93f2c6e130c..8d49bfa874ec83de13489f3d8659f88dbaef0323 100644 (file)
@@ -1266,6 +1266,7 @@ html.ios body.portrait #interface {
     white-space: nowrap;
 
     &[data-animation-type] {
+      transform-origin: 0 100%;
       opacity: 0;
     }
   }