Skip to content

Commit

Permalink
feat(linear-progress): add feature targeting for styles (material-com…
Browse files Browse the repository at this point in the history
  • Loading branch information
crisbeto authored and abhiomkar committed Sep 5, 2019
1 parent 4c4342d commit 7ec18c6
Show file tree
Hide file tree
Showing 5 changed files with 355 additions and 224 deletions.
208 changes: 112 additions & 96 deletions packages/mdc-linear-progress/_keyframes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,137 +20,153 @@
// THE SOFTWARE.
//

@keyframes primary-indeterminate-translate {
0% {
transform: translateX(0);
}

20% {
animation-timing-function: cubic-bezier(.5, 0, .701732, .495819);
transform: translateX(0);
}

59.15% {
animation-timing-function: cubic-bezier(.302435, .381352, .55, .956352);
transform: translateX(83.67142%);
}

100% {
transform: translateX(200.611057%);
@mixin mdc-linear-progress-primary-indeterminate-translate-keyframes_ {
@keyframes primary-indeterminate-translate {
0% {
transform: translateX(0);
}

20% {
animation-timing-function: cubic-bezier(.5, 0, .701732, .495819);
transform: translateX(0);
}

59.15% {
animation-timing-function: cubic-bezier(.302435, .381352, .55, .956352);
transform: translateX(83.67142%);
}

100% {
transform: translateX(200.611057%);
}
}
}

@keyframes primary-indeterminate-scale {
0% {
transform: scaleX(.08);
}
@mixin mdc-linear-progress-primary-indeterminate-scale-keyframes_ {
@keyframes primary-indeterminate-scale {
0% {
transform: scaleX(.08);
}

36.65% {
animation-timing-function: cubic-bezier(.334731, .12482, .785844, 1);
transform: scaleX(.08);
}
36.65% {
animation-timing-function: cubic-bezier(.334731, .12482, .785844, 1);
transform: scaleX(.08);
}

69.15% {
animation-timing-function: cubic-bezier(.06, .11, .6, 1);
transform: scaleX(.661479);
}
69.15% {
animation-timing-function: cubic-bezier(.06, .11, .6, 1);
transform: scaleX(.661479);
}

100% {
transform: scaleX(.08);
100% {
transform: scaleX(.08);
}
}
}

@keyframes secondary-indeterminate-translate {
0% {
animation-timing-function: cubic-bezier(.15, 0, .515058, .409685);
transform: translateX(0);
}
@mixin mdc-linear-progress-secondary-indeterminate-translate-keyframes_ {
@keyframes secondary-indeterminate-translate {
0% {
animation-timing-function: cubic-bezier(.15, 0, .515058, .409685);
transform: translateX(0);
}

25% {
animation-timing-function: cubic-bezier(.31033, .284058, .8, .733712);
transform: translateX(37.651913%);
}
25% {
animation-timing-function: cubic-bezier(.31033, .284058, .8, .733712);
transform: translateX(37.651913%);
}

48.35% {
animation-timing-function: cubic-bezier(.4, .627035, .6, .902026);
transform: translateX(84.386165%);
}
48.35% {
animation-timing-function: cubic-bezier(.4, .627035, .6, .902026);
transform: translateX(84.386165%);
}

100% {
transform: translateX(160.277782%);
100% {
transform: translateX(160.277782%);
}
}
}

@keyframes secondary-indeterminate-scale {
0% {
animation-timing-function: cubic-bezier(.205028, .057051, .57661, .453971);
transform: scaleX(.08);
}
@mixin mdc-linear-progress-secondary-indeterminate-scale-keyframes_ {
@keyframes secondary-indeterminate-scale {
0% {
animation-timing-function: cubic-bezier(.205028, .057051, .57661, .453971);
transform: scaleX(.08);
}

19.15% {
animation-timing-function: cubic-bezier(.152313, .196432, .648374, 1.004315);
transform: scaleX(.457104);
}
19.15% {
animation-timing-function: cubic-bezier(.152313, .196432, .648374, 1.004315);
transform: scaleX(.457104);
}

44.15% {
animation-timing-function: cubic-bezier(.257759, -.003163, .211762, 1.38179);
transform: scaleX(.72796);
}
44.15% {
animation-timing-function: cubic-bezier(.257759, -.003163, .211762, 1.38179);
transform: scaleX(.72796);
}

100% {
transform: scaleX(.08);
100% {
transform: scaleX(.08);
}
}
}

@keyframes buffering {
to {
transform: translateX(-10px);
@mixin mdc-linear-progress-buffering-keyframes_ {
@keyframes buffering {
to {
transform: translateX(-10px);
}
}
}

@keyframes primary-indeterminate-translate-reverse {
0% {
transform: translateX(0);
}
@mixin mdc-linear-progress-primary-indeterminate-translate-reverse-keyframes_ {
@keyframes primary-indeterminate-translate-reverse {
0% {
transform: translateX(0);
}

20% {
animation-timing-function: cubic-bezier(.5, 0, .701732, .495819);
transform: translateX(0);
}
20% {
animation-timing-function: cubic-bezier(.5, 0, .701732, .495819);
transform: translateX(0);
}

59.15% {
animation-timing-function: cubic-bezier(.302435, .381352, .55, .956352);
transform: translateX(-83.67142%);
}
59.15% {
animation-timing-function: cubic-bezier(.302435, .381352, .55, .956352);
transform: translateX(-83.67142%);
}

100% {
transform: translateX(-200.611057%);
100% {
transform: translateX(-200.611057%);
}
}
}

@keyframes secondary-indeterminate-translate-reverse {
0% {
animation-timing-function: cubic-bezier(.15, 0, .515058, .409685);
transform: translateX(0);
}
@mixin mdc-linear-progress-secondary-indeterminate-translate-reverse-keyframes_ {
@keyframes secondary-indeterminate-translate-reverse {
0% {
animation-timing-function: cubic-bezier(.15, 0, .515058, .409685);
transform: translateX(0);
}

25% {
animation-timing-function: cubic-bezier(.31033, .284058, .8, .733712);
transform: translateX(-37.651913%);
}
25% {
animation-timing-function: cubic-bezier(.31033, .284058, .8, .733712);
transform: translateX(-37.651913%);
}

48.35% {
animation-timing-function: cubic-bezier(.4, .627035, .6, .902026);
transform: translateX(-84.386165%);
}
48.35% {
animation-timing-function: cubic-bezier(.4, .627035, .6, .902026);
transform: translateX(-84.386165%);
}

100% {
transform: translateX(-160.277782%);
100% {
transform: translateX(-160.277782%);
}
}
}

@keyframes buffering-reverse {
to {
transform: translateX(10px);
@mixin mdc-linear-progress-buffering-reverse-keyframes_ {
@keyframes buffering-reverse {
to {
transform: translateX(10px);
}
}
}
Loading

0 comments on commit 7ec18c6

Please sign in to comment.