Shoreter Animation
This commit is contained in:
1 parent
8d77636822
commit
43c5ad95c5
2 files changed
+5
-5
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user