Skip to content

Commit

Permalink
fix (navbar,contextmenu): animation demo is not working.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-KaiNet committed Jul 27, 2016
1 parent a206af1 commit 0975287
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 0 deletions.
42 changes: 42 additions & 0 deletions src/components/contextualmenu/demo/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,46 @@
position: relative;
width: 180px;
z-index: 105;
}

@-webkit-keyframes fadeIn {
from {
opacity: 0;
animation-timing-function: cubic-bezier(0.1, 0.25, 0.75, 0.9);
}

to {
opacity: 1;
}
}

@-webkit-keyframes fadeOut {
from {
opacity: 1;
animation-timing-function: cubic-bezier(0.1, 0.25, 0.75, 0.9);
}

to {
opacity: 0;
}
}

@-webkit-keyframes slideRightIn40 {
from {
transform: translate3d(-40px, 0px, 0px);
}

to {
transform: translate3d(0px, 0px, 0px);
}
}

@-webkit-keyframes scaleDown98 {
from {
transform: scale3d(1, 1, 1);
}

to {
transform: scale3d(0.98, 0.98, 1);
}
}
42 changes: 42 additions & 0 deletions src/components/navbar/demo/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,46 @@
.ms-NavBar-item.ms-NavBar-item--search.is-open-add, .ms-NavBar-item.ms-NavBar-item--search.is-open-remove{
-webkit-transition: all .2s;
transition: all .2s;
}

@-webkit-keyframes fadeIn {
from {
opacity: 0;
animation-timing-function: cubic-bezier(0.1, 0.25, 0.75, 0.9);
}

to {
opacity: 1;
}
}

@-webkit-keyframes fadeOut {
from {
opacity: 1;
animation-timing-function: cubic-bezier(0.1, 0.25, 0.75, 0.9);
}

to {
opacity: 0;
}
}

@-webkit-keyframes slideRightIn40 {
from {
transform: translate3d(-40px, 0px, 0px);
}

to {
transform: translate3d(0px, 0px, 0px);
}
}

@-webkit-keyframes scaleDown98 {
from {
transform: scale3d(1, 1, 1);
}

to {
transform: scale3d(0.98, 0.98, 1);
}
}

0 comments on commit 0975287

Please sign in to comment.