Browse Source

Bug fixes for transition

pull/1896/head
jlukic 10 years ago
parent
commit
28c81f5801
3 changed files with 54 additions and 50 deletions
  1. 3
      RELEASE-NOTES.md
  2. 1
      src/definitions/modules/transition.js
  3. 100
      src/themes/default/modules/transition.overrides

3
RELEASE-NOTES.md

@ -7,12 +7,15 @@
- **Visibiliity** - Attach callbacks to elements visibility conditions like `top visible` `bottom visible`, `passing`. Useful for things like: image lazy loading, infinite scroll content, and recording tracking metrics - **Visibiliity** - Attach callbacks to elements visibility conditions like `top visible` `bottom visible`, `passing`. Useful for things like: image lazy loading, infinite scroll content, and recording tracking metrics
**Enhancements** **Enhancements**
- **Transition** - Added more reasonable default durations for each animation
- **Loader** - `inline loader` now has a `centered` variation - **Loader** - `inline loader` now has a `centered` variation
- **Transition** - Added `toggle` behavior and docs for `show` and `hide` - **Transition** - Added `toggle` behavior and docs for `show` and `hide`
- **Transition** - transition now has `stop`, `stop all`, and `clear queue` for removing transitions, (undocumented method `stop`, and `start` renamed to `enable` and `disable`) - **Transition** - transition now has `stop`, `stop all`, and `clear queue` for removing transitions, (undocumented method `stop`, and `start` renamed to `enable` and `disable`)
**Bugs** **Bugs**
- **Transition** - Fixes `swing out` animations not working correctly
- **Transition** - Fixed display state other than `block` not determined when using `show` and `hide` without an animation - **Transition** - Fixed display state other than `block` not determined when using `show` and `hide` without an animation
- **Transition** - Fix bug in `remove looping` causing one additional animation
- **Menu** - Fix vertical pointing menu, sub menu arrow color - **Menu** - Fix vertical pointing menu, sub menu arrow color
- **Item ** - `img` inside of `ui item content` now do not receive size formatting by default - **Item ** - `img` inside of `ui item content` now do not receive size formatting by default
- **Form** - Added `input[type="search"]` styles to `ui form` - **Form** - Added `input[type="search"]` styles to `ui form`

1
src/definitions/modules/transition.js

@ -465,6 +465,7 @@ $.fn.transition = function() {
$module $module
.removeClass(className.looping) .removeClass(className.looping)
; ;
module.reset();
module.forceRepaint(); module.forceRepaint();
}, },
transition: function() { transition: function() {

100
src/themes/default/modules/transition.overrides

@ -14,6 +14,9 @@
Browse Browse
---------------*/ ---------------*/
.transition.browse {
animation-duration: 500ms;
}
.transition.browse.in { .transition.browse.in {
animation-name: browseIn; animation-name: browseIn;
} }
@ -92,7 +95,7 @@
.drop.transition { .drop.transition {
transform-origin: top center; transform-origin: top center;
animation-duration: 0.5s;
animation-duration: 500ms;
animation-timing-function: cubic-bezier(0.34, 1.61, 0.7, 1); animation-timing-function: cubic-bezier(0.34, 1.61, 0.7, 1);
} }
.drop.transition.in { .drop.transition.in {
@ -266,6 +269,7 @@
.flip.transition.in, .flip.transition.in,
.flip.transition.out { .flip.transition.out {
animation-duration: 750ms;
perspective: 2000px; perspective: 2000px;
} }
.horizontal.flip.transition.in { .horizontal.flip.transition.in {
@ -653,39 +657,42 @@
Swing Swing
---------------*/ ---------------*/
.transition.swing.in,
.transition.swing {
animation-duration: 800ms;
}
.transition[class*="swing down"].in { .transition[class*="swing down"].in {
animation-name: swingInY;
animation-name: swingInX;
transform-origin: top center; transform-origin: top center;
} }
.transition[class*="swing up"].in { .transition[class*="swing up"].in {
animation-name: swingInY;
animation-name: swingInX;
transform-origin: bottom center; transform-origin: bottom center;
} }
.transition[class*="swing left"].in { .transition[class*="swing left"].in {
animation-name: swingInX;
animation-name: swingInY;
transform-origin: center right; transform-origin: center right;
} }
.transition[class*="swing right"].in { .transition[class*="swing right"].in {
animation-name: swingInX;
animation-name: swingInY;
transform-origin: center left; transform-origin: center left;
} }
.transition.swing.out, .transition.swing.out,
.transition[class*="swing down"].out { .transition[class*="swing down"].out {
animation-name: swingOutY;
animation-name: swingOutX;
transform-origin: top center; transform-origin: top center;
} }
.transition[class*="swing up"].out { .transition[class*="swing up"].out {
animation-name: swingOutY;
animation-name: swingOutX;
transform-origin: bottom center; transform-origin: bottom center;
} }
.transition[class*="swing left"].out { .transition[class*="swing left"].out {
animation-name: swingOutX;
animation-name: swingOutY;
transform-origin: center right; transform-origin: center right;
} }
.transition[class*="swing right"].out { .transition[class*="swing right"].out {
animation-name: swingOutX;
animation-name: swingOutY;
transform-origin: center left; transform-origin: center left;
} }
@ -696,14 +703,14 @@
opacity: 0; opacity: 0;
} }
40% { 40% {
transform: perspective(1000px) rotateX(-20deg);
transform: perspective(1000px) rotateX(-30deg);
opacity: 1;
} }
60% { 60% {
transform: perspective(1000px) rotateX(10deg);
transform: perspective(1000px) rotateX(15deg);
} }
80% { 80% {
transform: perspective(1000px) rotateX(-5deg);
opacity: 1;
transform: perspective(1000px) rotateX(-7.5deg);
} }
100% { 100% {
transform: perspective(1000px) rotateX(0deg); transform: perspective(1000px) rotateX(0deg);
@ -715,14 +722,14 @@
opacity: 0; opacity: 0;
} }
40% { 40% {
transform: perspective(1000px) rotateY(20deg);
transform: perspective(1000px) rotateY(30deg);
opacity: 1;
} }
60% { 60% {
transform: perspective(1000px) rotateY(-10deg);
transform: perspective(1000px) rotateY(-17.5deg);
} }
80% { 80% {
transform: perspective(1000px) rotateY(5deg);
opacity: 1;
transform: perspective(1000px) rotateY(7.5deg);
} }
100% { 100% {
transform: perspective(1000px) rotateY(0deg); transform: perspective(1000px) rotateY(0deg);
@ -730,59 +737,46 @@
} }
/* Out */ /* Out */
@keyframes swingOutUp {
@keyframes swingOutX {
0% { 0% {
transform: perspective(1000px) rotateX(0deg); transform: perspective(1000px) rotateX(0deg);
} }
30% {
transform: perspective(1000px) rotateX(-20deg);
opacity:1;
}
100% {
transform: perspective(1000px) rotateX(90deg);
opacity: 0;
40% {
transform: perspective(1000px) rotateX(-7.5deg);
} }
}
@keyframes swingOutDown {
0% {
transform: perspective(1000px) rotateX(0deg);
60% {
transform: perspective(1000px) rotateX(17.5deg);
} }
30% {
transform: perspective(1000px) rotateX(20deg);
opacity:1;
80% {
transform: perspective(1000px) rotateX(-30deg);
opacity: 1;
} }
100% { 100% {
transform: perspective(1000px) rotateX(-90deg);
transform: perspective(1000px) rotateX(90deg);
opacity: 0; opacity: 0;
} }
} }
@keyframes swingOutLeft {
@keyframes swingOutY {
0% { 0% {
transform: perspective(1000px) rotateY(0deg); transform: perspective(1000px) rotateY(0deg);
} }
30% {
transform: perspective(1000px) rotateY(20deg);
opacity:1;
}
100% {
transform: perspective(1000px) rotateY(-90deg);
opacity: 0;
40% {
transform: perspective(1000px) rotateY(7.5deg);
} }
}
@keyframes swingOutRight {
0% {
transform: perspective(1000px) rotateY(0deg);
60% {
transform: perspective(1000px) rotateY(-10deg);
} }
30% {
transform: perspective(1000px) rotateY(-20deg);
opacity:1;
80% {
transform: perspective(1000px) rotateY(30deg);
opacity: 1;
} }
100% { 100% {
transform: perspective(1000px) rotateY(90deg);
transform: perspective(1000px) rotateY(-90deg);
opacity: 0; opacity: 0;
} }
} }
/******************************* /*******************************
Static Animations Static Animations
*******************************/ *******************************/
@ -792,21 +786,27 @@
---------------*/ ---------------*/
.flash.transition { .flash.transition {
animation-duration: 750ms;
animation-name: flash; animation-name: flash;
} }
.shake.transition { .shake.transition {
animation-duration: 750ms;
animation-name: shake; animation-name: shake;
} }
.bounce.transition { .bounce.transition {
animation-duration: 750ms;
animation-name: bounce; animation-name: bounce;
} }
.tada.transition { .tada.transition {
animation-duration: 750ms;
animation-name: tada; animation-name: tada;
} }
.pulse.transition { .pulse.transition {
animation-duration: 500ms;
animation-name: pulse; animation-name: pulse;
} }
.jiggle.transition { .jiggle.transition {
animation-duration: 750ms;
animation-name: jiggle; animation-name: jiggle;
} }

Loading…
Cancel
Save