Browse Source

Slight modification to remove looping

pull/1896/head
jlukic 9 years ago
parent
commit
089bf33400
3 changed files with 13 additions and 10 deletions
  1. 4
      RELEASE-NOTES.md
  2. 17
      src/definitions/modules/transition.js
  3. 2
      src/themes/default/modules/transition.overrides

4
RELEASE-NOTES.md

@ -3,7 +3,6 @@
### Version 1.11.0 - February xx, 2015
**New Components**
- **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**
@ -13,9 +12,10 @@
- **Transition** - transition now has `stop`, `stop all`, and `clear queue` for removing transitions, (undocumented method `stop`, and `start` renamed to `enable` and `disable`)
**Bugs**
- **Dropdown** - Fixes issue where dropdown would not open after restoring previus value on failed `search dropdown` search
- **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** - Fix bug in `remove looping` causing one additional animation
- **Transition** - Fix bug in `remove looping` causing next animation to use same duration
- **Menu** - Fix vertical pointing menu, sub menu arrow color
- **Item ** - `img` inside of `ui item content` now do not receive size formatting by default
- **Form** - Added `input[type="search"]` styles to `ui form`

17
src/definitions/modules/transition.js

@ -392,11 +392,13 @@ $.fn.transition = function() {
$module.removeAttr('class');
}
if(module.cache.style) {
console.log(module.cache.style);
module.verbose('Restoring original style attribute', module.cache.style);
$module.attr('style', module.cache.style);
}
if(module.is.looping()) {
module.remove.looping();
else {
module.verbose('Clearing style attribute');
$module.removeAttr('style');
}
module.verbose('Restoring original attributes', module.cache);
}
@ -462,11 +464,12 @@ $.fn.transition = function() {
},
looping: function() {
module.debug('Transitions are no longer looping');
$module
.removeClass(className.looping)
;
module.reset();
module.forceRepaint();
if( module.is.looping() ) {
module.reset();
$module
.removeClass(className.looping)
;
}
},
transition: function() {
$module

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

@ -269,7 +269,7 @@
.flip.transition.in,
.flip.transition.out {
animation-duration: 750ms;
animation-duration: 600ms;
perspective: 2000px;
}
.horizontal.flip.transition.in {

Loading…
Cancel
Save