Difference between revisions of "Twisted Toppings"
Jump to navigation
Jump to search
imported>Felix (Experimentin'. Didn't actually mean to save yet. Oops!) |
imported>Felix (Hmm.) |
||
Line 282: | Line 282: | ||
margin: 0 auto; | margin: 0 auto; | ||
position: relative; | position: relative; | ||
+ | overflow: hidden; | ||
} | } | ||
.tab { | .tab { | ||
Line 309: | Line 310: | ||
} | } | ||
.panel { | .panel { | ||
− | |||
− | |||
− | |||
order: 0; | order: 0; | ||
text-indent: 1.5em; | text-indent: 1.5em; | ||
margin-bottom: 0.5em; | margin-bottom: 0.5em; | ||
min-height: 100px; | min-height: 100px; | ||
− | width: 100%; | + | width: calc(100% - 2px); |
border: 1px dotted rgba(255,255,255,.75); | border: 1px dotted rgba(255,255,255,.75); | ||
background: rgba(0,0,0,.4); | background: rgba(0,0,0,.4); | ||
Line 325: | Line 323: | ||
} | } | ||
#first-panel { | #first-panel { | ||
− | + | left: 0; | |
− | |||
position: relative; | position: relative; | ||
− | + | width: 100%; | |
} | } | ||
:target ~ #first-panel { | :target ~ #first-panel { | ||
− | + | left: -100%; | |
− | |||
− | |||
} | } | ||
#first:target ~ #first-panel, #second:target ~ #second-panel, #third:target ~ #third-panel { | #first:target ~ #first-panel, #second:target ~ #second-panel, #third:target ~ #third-panel { | ||
− | + | left: 0; | |
− | |||
− | |||
} | } | ||
− | + | .panel { | |
− | + | animation: moveIt 60s infinite; | |
− | animation: | ||
animation-timing-function: linear; | animation-timing-function: linear; | ||
+ | } | ||
+ | #first-panel, #first:target ~ #first-panel { | ||
+ | background: rgba(255,0,0,.25); | ||
+ | animation-delay: 0s; | ||
z-index: 5; | z-index: 5; | ||
+ | left: 0; | ||
} | } | ||
− | #second-panel { | + | #second-panel, #first:target ~ #second-panel { |
− | background: rgba(0,0,255,. | + | background: rgba(0,0,255,.25); |
− | |||
− | |||
animation-delay: 20s; | animation-delay: 20s; | ||
z-index: 6; | z-index: 6; | ||
− | + | left: -100%; | |
} | } | ||
− | #third-panel { | + | #third-panel, #first:target ~ #third-panel { |
− | background: rgba(255,255,0,. | + | background: rgba(255,255,0,.25); |
− | |||
− | |||
animation-delay: 40s; | animation-delay: 40s; | ||
z-index: 7; | z-index: 7; | ||
− | + | left: -100%; | |
+ | } | ||
+ | #second:target ~ #first-panel { | ||
+ | animation-delay: 40s; | ||
+ | left: -100%; | ||
+ | } | ||
+ | #second:target ~ #second-panel { | ||
+ | animation-delay: 0s; | ||
+ | left: 0; | ||
+ | } | ||
+ | #second:target ~ #third-panel { | ||
+ | animation-delay: 20s; | ||
+ | left: -100%; | ||
+ | } | ||
+ | #third:target ~ #first-panel { | ||
+ | animation-delay: 20s; | ||
+ | left: -100%; | ||
+ | } | ||
+ | #third:target ~ #second-panel { | ||
+ | animation-delay: 40s; | ||
+ | left: -100%; | ||
+ | } | ||
+ | #third:target ~ #third-panel { | ||
+ | animation-delay: 0s; | ||
+ | left: 0; | ||
+ | } | ||
+ | #panels:hover .panel { | ||
+ | animation-play-state: paused; | ||
+ | } | ||
+ | @keyframes moveIt { | ||
+ | 0% {left: -100%;} | ||
+ | 3.3333333333333333% {left: 0px;} | ||
+ | 33.333333333333333%{left: 0px;} | ||
+ | 36.666666666666667% {left: 100%;} | ||
+ | 100% {left: 100%;} | ||
} | } | ||
− | @keyframes | + | @keyframes fader { |
0% {opacity: 0;} | 0% {opacity: 0;} | ||
3.33% {opacity: 1;} | 3.33% {opacity: 1;} |