Browse Source

Removing unneeded classes.

pull/214/head
connors 11 years ago
parent
commit
cdaf9cdfff
  1. 6
      dist/ratchet.css
  2. 4
      lib/js/push.js

6
dist/ratchet.css vendored

@ -956,12 +956,12 @@ button.button-block {
.content.slide { .content.slide {
z-index: 2; z-index: 2;
-webkit-transition-timing-function: cubic-bezier(0.1, 0.7, 0.1, 1); -webkit-transition-timing-function: cubic-bezier(0.1, 0.7, 0.1, 1);
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
-webkit-transition: -webkit-transform .4s; -webkit-transition: -webkit-transform .4s;
transition: transform .4s; transition: transform .4s;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
} }
.content.slide.sliding-in.top, .content.slide.right:not([class*="sliding-in"]) { .content.slide.sliding-in, .content.slide.right:not([class*="sliding-in"]) {
-webkit-animation-name: fadeOverlay; -webkit-animation-name: fadeOverlay;
animation-name: fadeOverlay; animation-name: fadeOverlay;
-webkit-animation-duration: .4s; -webkit-animation-duration: .4s;

4
lib/js/push.js

@ -287,7 +287,7 @@
if (/slide/.test(transition)) { if (/slide/.test(transition)) {
swap.classList.add('sliding-in', enter ? 'right' : 'left'); swap.classList.add('sliding-in', enter ? 'right' : 'left');
swap.classList.add('slide', enter ? 'top' : 'bottom'); swap.classList.add('slide');
container.classList.add('slide'); container.classList.add('slide');
} }
@ -325,7 +325,7 @@
function slideEnd() { function slideEnd() {
swap.removeEventListener('webkitTransitionEnd', slideEnd); swap.removeEventListener('webkitTransitionEnd', slideEnd);
swap.classList.remove('slide', 'bottom', 'top', 'sliding-in'); swap.classList.remove('slide', 'sliding-in');
swap.classList.remove(swapDirection); swap.classList.remove(swapDirection);
container.parentNode.removeChild(container); container.parentNode.removeChild(container);
complete && complete(); complete && complete();

Loading…
Cancel
Save