Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 30 additions & 30 deletions transitions/cascade-transition.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,90 +10,90 @@
<link href="core-transition-pages.html" rel="import">

<core-style id="cascade-transition">
polyfill-next-selector { content: ':host(.cascade) > * [cascade] > div'; }
:host(.cascade) ::content > * /deep/ [cascade] > div {
polyfill-next-selector { content: ':host(.cascade) > * [cascade] > *'; }
:host(.cascade) ::content > * /deep/ [cascade] > * {
-webkit-transition: -webkit-transform {{g.transitions.cascadeDuration || g.transitions.duration}} cubic-bezier(0.4, 0, 0.2, 1), opacity {{g.transitions.cascadeFadeDuration || g.transitions.duration}} cubic-bezier(0.4, 0, 0.2, 1);
transition: transform {{g.transitions.cascadeDuration || g.transitions.duration}} cubic-bezier(0.4, 0, 0.2, 1), opacity {{g.transitions.cascadeFadeDuration || g.transitions.duration}} cubic-bezier(0.4, 0, 0.2, 1);
}

polyfill-next-selector { content: ':host(.cascade) > * [cascade] > div:nth-of-type(2)'; }
:host(.cascade) ::content > * /deep/ [cascade] > div:nth-of-type(2) {
polyfill-next-selector { content: ':host(.cascade) > * [cascade] > *:nth-child(2)'; }
:host(.cascade) ::content > * /deep/ [cascade] > *:nth-child(2) {
-webkit-transition-delay: 0.05s;
transition-delay: 0.05s;
}

polyfill-next-selector { content: ':host(.cascade) > * [cascade] > div:nth-of-type(3)'; }
:host(.cascade) ::content > * /deep/ [cascade] > div:nth-of-type(3) {
polyfill-next-selector { content: ':host(.cascade) > * [cascade] > *:nth-child(3)'; }
:host(.cascade) ::content > * /deep/ [cascade] > *:nth-child(3) {
-webkit-transition-delay: 0.1s;
transition-delay: 0.1s;
}

polyfill-next-selector { content: ':host(.cascade) > * [cascade] > div:nth-of-type(4)'; }
:host(.cascade) ::content > * /deep/ [cascade] > div:nth-of-type(4) {
polyfill-next-selector { content: ':host(.cascade) > * [cascade] > *:nth-child(4)'; }
:host(.cascade) ::content > * /deep/ [cascade] > *:nth-child(4) {
-webkit-transition-delay: 0.15s;
transition-delay: 0.15s;
}

polyfill-next-selector { content: ':host(.cascade) > * [cascade] > div:nth-of-type(5)'; }
:host(.cascade) ::content > * /deep/ [cascade] > div:nth-of-type(5) {
polyfill-next-selector { content: ':host(.cascade) > * [cascade] > *:nth-child(5)'; }
:host(.cascade) ::content > * /deep/ [cascade] > *:nth-child(5) {
-webkit-transition-delay: 0.2s;
transition-delay: 0.2s;
}

polyfill-next-selector { content: ':host(.cascade) > * [cascade] > div:nth-of-type(6)'; }
:host(.cascade) ::content > * /deep/ [cascade] > div:nth-of-type(6) {
polyfill-next-selector { content: ':host(.cascade) > * [cascade] > *:nth-child(6)'; }
:host(.cascade) ::content > * /deep/ [cascade] > *:nth-child(6) {
-webkit-transition-delay: 0.25s;
transition-delay: 0.25s;
}

polyfill-next-selector { content: ':host(.cascade) > * [cascade] > div:nth-of-type(7)'; }
:host(.cascade) ::content > * /deep/ [cascade] > div:nth-of-type(7) {
polyfill-next-selector { content: ':host(.cascade) > * [cascade] > *:nth-child(7)'; }
:host(.cascade) ::content > * /deep/ [cascade] > *:nth-child(7) {
-webkit-transition-delay: 0.3s;
transition-delay: 0.3s;
}

polyfill-next-selector { content: ':host(.cascade) > * [cascade] > div:nth-of-type(8)'; }
:host(.cascade) ::content > * /deep/ [cascade] > div:nth-of-type(8) {
polyfill-next-selector { content: ':host(.cascade) > * [cascade] > *:nth-child(8)'; }
:host(.cascade) ::content > * /deep/ [cascade] > *:nth-child(8) {
-webkit-transition-delay: 0.35s;
transition-delay: 0.35s;
}

polyfill-next-selector { content: ':host(.cascade) > * [cascade] > div:nth-of-type(9)'; }
:host(.cascade) ::content > * /deep/ [cascade] > div:nth-of-type(9) {
polyfill-next-selector { content: ':host(.cascade) > * [cascade] > *:nth-child(9)'; }
:host(.cascade) ::content > * /deep/ [cascade] > *:nth-child(9) {
-webkit-transition-delay: 0.4s;
transition-delay: 0.4s;
}

polyfill-next-selector { content: ':host(.cascade) > * [cascade] > div:nth-of-type(10)'; }
:host(.cascade) ::content > * /deep/ [cascade] > div:nth-of-type(10) {
polyfill-next-selector { content: ':host(.cascade) > * [cascade] > *:nth-child(10)'; }
:host(.cascade) ::content > * /deep/ [cascade] > *:nth-child(10) {
-webkit-transition-delay: 0.45s;
transition-delay: 0.45s;
}

polyfill-next-selector { content: ':host(.cascade) > * [cascade] > div:nth-of-type(11)'; }
:host(.cascade) ::content > * /deep/ [cascade] > div:nth-of-type(11) {
polyfill-next-selector { content: ':host(.cascade) > * [cascade] > *:nth-child(11)'; }
:host(.cascade) ::content > * /deep/ [cascade] > *:nth-child(11) {
-webkit-transition-delay: 0.5s;
transition-delay: 0.5s;
}

polyfill-next-selector { content: ':host(.cascade) > * [cascade] > div:nth-of-type(12)'; }
:host(.cascade) ::content > * /deep/ [cascade] > div:nth-of-type(12) {
polyfill-next-selector { content: ':host(.cascade) > * [cascade] > *:nth-child(12)'; }
:host(.cascade) ::content > * /deep/ [cascade] > *:nth-child(12) {
-webkit-transition-delay: 0.55s;
transition-delay: 0.55s;
}

polyfill-next-selector { content: '.core-selected [cascade] > div'; }
::content > .core-selected /deep/ [cascade] > div {
polyfill-next-selector { content: '.core-selected [cascade] > *'; }
::content > .core-selected /deep/ [cascade] > * {
}

polyfill-next-selector { content: '[animate]:not(.core-selected) [cascade] > div'; }
::content > [animate]:not(.core-selected) /deep/ [cascade] > div {
polyfill-next-selector { content: '[animate]:not(.core-selected) [cascade] > *'; }
::content > [animate]:not(.core-selected) /deep/ [cascade] > * {
-webkit-transform: translateY(100%);
transform: translateY(100%);
}

polyfill-next-selector { content: '[animate]:not(.core-selected) [cascade][fade] > div'; }
::content > [animate]:not(.core-selected) /deep/ [cascade][fade] > div {
polyfill-next-selector { content: '[animate]:not(.core-selected) [cascade][fade] > *'; }
::content > [animate]:not(.core-selected) /deep/ [cascade][fade] > * {
opacity: 0;
}
</core-style>
Expand Down
29 changes: 15 additions & 14 deletions transitions/list-cascade.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,48 +11,49 @@


<core-style id="list-cascade">
polyfill-next-selector { content: ':host.list-cascade > * [list-cascade]'; }
:host(.list-cascade) ::content > * [list-cascade] * {
polyfill-next-selector { content: ':host.list-cascade > * [list-cascade] > *'; }
:host(.list-cascade) ::content > * [list-cascade] > * {
-webkit-transition: -webkit-transform 1s cubic-bezier(0.4, 0, 0.2, 1), opacity {{g.transitions.cascade || g.transitions.duration}} cubic-bezier(0.4, 0, 0.2, 1);
transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), opacity {{g.transitions.cascade || g.transitions.duration}} cubic-bezier(0.4, 0, 0.2, 1);
}

polyfill-next-selector { content: ':host > .core-selected [list-cascade] *'; }
::content > .core-selected [list-cascade] * {
polyfill-next-selector { content: ':host > .core-selected [list-cascade] > *'; }
::content > .core-selected [list-cascade] > * {
-webkit-transform: none;
transform: none;
}

polyfill-next-selector { content: ':host > *:not(.core-selected) [list-cascade] *'; }
::content > *:not(.core-selected) [list-cascade] * {
polyfill-next-selector { content: ':host > *:not(.core-selected) [list-cascade] > *'; }
::content > *:not(.core-selected) [list-cascade] > * {
-webkit-transform: translateY(200%);
transform: translateY(200%);
opacity: 0.2;
}

polyfill-next-selector { content: ':host > .core-selected [list-cascade] *:nth-child(2)'; }
::content > .core-selected [list-cascade] *:nth-child(2) {
polyfill-next-selector { content: ':host > .core-selected [list-cascade] > *:nth-child(2)'; }
::content > .core-selected [list-cascade] > *:nth-child(2) {
-webkit-transition-delay: 0.1s;
transition-delay: 0.1s;
}

polyfill-next-selector { content: ':host > .core-selected [list-cascade] *:nth-child(3)'; }
::content > .core-selected [list-cascade] *:nth-child(3) {
polyfill-next-selector { content: ':host > .core-selected [list-cascade] > *:nth-child(3)'; }
::content > .core-selected [list-cascade] > *:nth-child(3) {
-webkit-transition-delay: 0.2s;
transition-delay: 0.2s;
}

polyfill-next-selector { content: ':host > .core-selected [list-cascade] *:nth-child(4)'; }
::content > .core-selected [list-cascade] *:nth-child(4) {
polyfill-next-selector { content: ':host > .core-selected [list-cascade] > *:nth-child(4)'; }
::content > .core-selected [list-cascade] > *:nth-child(4) {
-webkit-transition-delay: 0.3s;
transition-delay: 0.3s;
}

polyfill-next-selector { content: ':host > .core-selected [list-cascade] *:nth-child(5)'; }
::content > .core-selected [list-cascade] *:nth-child(5) {
polyfill-next-selector { content: ':host > .core-selected [list-cascade] > *:nth-child(5)'; }
::content > .core-selected [list-cascade] > *:nth-child(5) {
-webkit-transition-delay: 0.4s;
transition-delay: 0.4s;
}
</core-style>

<core-transition-pages id="list-cascade" activeClass="list-cascade"></core-transition-pages>

61 changes: 31 additions & 30 deletions transitions/tile-cascade.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,92 +10,93 @@
<link href="core-transition-pages.html" rel="import">

<core-style id="tile-cascade">
polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > div'; }
:host(.tile-cascade) ::content > * /deep/ [tile-cascade] > div {
polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > *'; }
:host(.tile-cascade) ::content > * /deep/ [tile-cascade] > * {
-webkit-transition: -webkit-transform {{g.transitions.cascadeDuration || g.transitions.duration}} cubic-bezier(0.4, 0, 0.2, 1), opacity {{g.transitions.cascadeFadeDuration || g.transitions.duration}} cubic-bezier(0.4, 0, 0.2, 1);
transition: transform {{g.transitions.cascadeDuration || g.transitions.duration}} cubic-bezier(0.4, 0, 0.2, 1), opacity {{g.transitions.cascadeFadeDuration || g.transitions.duration}} cubic-bezier(0.4, 0, 0.2, 1);
}

polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > div:nth-of-type(2)'; }
:host(.tile-cascade) ::content > * /deep/ [tile-cascade] > div:nth-of-type(2) {
polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > *:nth-child(2)'; }
:host(.tile-cascade) ::content > * /deep/ [tile-cascade] > *:nth-child(2) {
-webkit-transition-delay: 0.05s;
transition-delay: 0.05s;
}

polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > div:nth-of-type(3)'; }
:host(.tile-cascade) ::content > * /deep/ [tile-cascade] > div:nth-of-type(3) {
polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > *:nth-child(3)'; }
:host(.tile-cascade) ::content > * /deep/ [tile-cascade] > *:nth-child(3) {
-webkit-transition-delay: 0.1s;
transition-delay: 0.1s;
}

polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > div:nth-of-type(4)'; }
:host(.tile-cascade) ::content > * /deep/ [tile-cascade] > div:nth-of-type(4) {
polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > *:nth-child(4)'; }
:host(.tile-cascade) ::content > * /deep/ [tile-cascade] > *:nth-child(4) {
-webkit-transition-delay: 0.15s;
transition-delay: 0.15s;
}

polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > div:nth-of-type(5)'; }
:host(.tile-cascade) ::content > * /deep/ [tile-cascade] > div:nth-of-type(5) {
polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > *:nth-child(5)'; }
:host(.tile-cascade) ::content > * /deep/ [tile-cascade] > *:nth-child(5) {
-webkit-transition-delay: 0.2s;
transition-delay: 0.2s;
}

polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > div:nth-of-type(6)'; }
:host(.tile-cascade) ::content > * /deep/ [tile-cascade] > div:nth-of-type(6) {
polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > *:nth-child(6)'; }
:host(.tile-cascade) ::content > * /deep/ [tile-cascade] > *:nth-child(6) {
-webkit-transition-delay: 0.25s;
transition-delay: 0.25s;
}

polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > div:nth-of-type(7)'; }
:host(.tile-cascade) ::content > * /deep/ [tile-cascade] > div:nth-of-type(7) {
polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > *:nth-child(7)'; }
:host(.tile-cascade) ::content > * /deep/ [tile-cascade] > *:nth-child(7) {
-webkit-transition-delay: 0.3s;
transition-delay: 0.3s;
}

polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > div:nth-of-type(8)'; }
:host(.tile-cascade) ::content > * /deep/ [tile-cascade] > div:nth-of-type(8) {
polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > *:nth-child(8)'; }
:host(.tile-cascade) ::content > * /deep/ [tile-cascade] > *:nth-child(8) {
-webkit-transition-delay: 0.35s;
transition-delay: 0.35s;
}

polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > div:nth-of-type(9)'; }
:host(.tile-cascade) ::content > * /deep/ [tile-cascade] > div:nth-of-type(9) {
polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > *:nth-child(9)'; }
:host(.tile-cascade) ::content > * /deep/ [tile-cascade] > *:nth-child(9) {
-webkit-transition-delay: 0.4s;
transition-delay: 0.4s;
}

polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > div:nth-of-type(10)'; }
:host(.tile-cascade) ::content > * /deep/ [tile-cascade] > div:nth-of-type(10) {
polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > *:nth-child(10)'; }
:host(.tile-cascade) ::content > * /deep/ [tile-cascade] > *:nth-child(10) {
-webkit-transition-delay: 0.45s;
transition-delay: 0.45s;
}

polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > div:nth-of-type(11)'; }
:host(.tile-cascade) ::content > * /deep/ [tile-cascade] > div:nth-of-type(11) {
polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > *:nth-child(11)'; }
:host(.tile-cascade) ::content > * /deep/ [tile-cascade] > *:nth-child(11) {
-webkit-transition-delay: 0.5s;
transition-delay: 0.5s;
}

polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > div:nth-of-type(12)'; }
:host(.tile-cascade) ::content > * /deep/ [tile-cascade] > div:nth-of-type(12) {
polyfill-next-selector { content: ':host(.tile-cascade) > * [tile-cascade] > *:nth-child(12)'; }
:host(.tile-cascade) ::content > * /deep/ [tile-cascade] > *:nth-child(12) {
-webkit-transition-delay: 0.55s;
transition-delay: 0.55s;
}

polyfill-next-selector { content: '.core-selected [tile-cascade] > div'; }
::content > .core-selected /deep/ [tile-cascade] > div {
polyfill-next-selector { content: '.core-selected [tile-cascade] > *'; }
::content > .core-selected /deep/ [tile-cascade] > * {
}

polyfill-next-selector { content: '[animate]:not(.core-selected) [tile-cascade] > div'; }
::content > [animate]:not(.core-selected) /deep/ [tile-cascade] > div {
polyfill-next-selector { content: '[animate]:not(.core-selected) [tile-cascade] > *'; }
::content > [animate]:not(.core-selected) /deep/ [tile-cascade] > * {
-webkit-transform: translateY(100%);
transform: translateY(100%);
}

polyfill-next-selector { content: '[animate]:not(.core-selected) [tile-cascade][fade] > div'; }
::content > [animate]:not(.core-selected) /deep/ [tile-cascade][fade] > div {
polyfill-next-selector { content: '[animate]:not(.core-selected) [tile-cascade][fade] > *'; }
::content > [animate]:not(.core-selected) /deep/ [tile-cascade][fade] > * {
opacity: 0;
}
</core-style>

<core-transition-pages id="tile-cascade" activeClass="tile-cascade" transitionProperty="transform"></core-transition-pages>