Shoreter Animation

This commit is contained in:
Luis Fernando Molina committed 2018-08-05 15:27:26 +02:00
1 parent 8d77636822
commit 43c5ad95c5
2 files changed
+5 -5

No files matched your search

+3 -3
View File
@@ -436,12 +436,12 @@ function newFloatingLayer() {
// The fontSize also have a target.
if (Math.abs(floatingObject.currentImageSize - floatingObject.targetImageSize) >= 0.1) {
if (Math.abs(floatingObject.currentImageSize - floatingObject.targetImageSize) >= 0.2) {
if (floatingObject.currentFontSize < floatingObject.targetFontSize) {
floatingObject.currentFontSize = floatingObject.currentFontSize + 0.1;
floatingObject.currentFontSize = floatingObject.currentFontSize + 0.2;
} else {
floatingObject.currentFontSize = floatingObject.currentFontSize - 0.1;
floatingObject.currentFontSize = floatingObject.currentFontSize - 0.2;
}
}
+2 -2
View File
@@ -99,8 +99,8 @@ function newFloatingObject() {
function onMouseOver() {
thisObject.targetRadius = thisObject.rawRadius * 2;
thisObject.targetImageSize = thisObject.rawImageSize * 2;
thisObject.targetRadius = thisObject.rawRadius * 1.5;
thisObject.targetImageSize = thisObject.rawImageSize * 1.5;
thisObject.targetFontSize = thisObject.rawFontSize * 1.5;
}