forked from benschwarz/gallery-css
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3bff102
commit e950af6
Showing
7 changed files
with
1,117 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,297 @@ | ||
.gallery .item:first-of-type { | ||
opacity: 1; | ||
position: static; | ||
} | ||
.gallery .item { | ||
transition: opacity 0.5s; | ||
width: 100%; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
opacity: 0; | ||
} | ||
.gallery .control-operator { | ||
display: none; | ||
} | ||
.gallery .control-operator:target ~ .item { | ||
opacity: 0; | ||
animation: none; | ||
} | ||
.gallery .control-operator:target + .item { | ||
opacity: 1; | ||
} | ||
.gallery .control-operator:target ~ .controls .control-button { | ||
animation: none; | ||
} | ||
|
||
@keyframes controlFade-2 { | ||
0% { | ||
color: #ccc; | ||
color: rgba(255, 255, 255, 0.4); | ||
} | ||
|
||
14.28571%, | ||
50% { | ||
color: white; | ||
color: rgba(255, 255, 255, 0.8); | ||
} | ||
|
||
64.28571% { | ||
color: #ccc; | ||
color: rgba(255, 255, 255, 0.4); | ||
} | ||
} | ||
|
||
@keyframes galleryAnimation-2 { | ||
0% { | ||
opacity: 0; | ||
} | ||
|
||
14.28571%, | ||
50% { | ||
opacity: 1; | ||
} | ||
|
||
64.28571% { | ||
opacity: 0; | ||
} | ||
} | ||
|
||
.items-2 .control-button { | ||
animation: controlFade-2 14s infinite; | ||
} | ||
.items-2 .item { | ||
animation: galleryAnimation-2 14s infinite; | ||
} | ||
.items-2 .control-operator:nth-of-type(1):target ~ .controls .control-button:nth-of-type(1) { | ||
color: white; | ||
color: rgba(255, 255, 255, 0.8); | ||
} | ||
.items-2 .control-button:nth-of-type(1), | ||
.items-2 .item:nth-of-type(1) { | ||
animation-delay: -2s; | ||
} | ||
.items-2 .control-operator:nth-of-type(2):target ~ .controls .control-button:nth-of-type(2) { | ||
color: white; | ||
color: rgba(255, 255, 255, 0.8); | ||
} | ||
.items-2 .control-button:nth-of-type(2), | ||
.items-2 .item:nth-of-type(2) { | ||
animation-delay: 5s; | ||
} | ||
|
||
@keyframes controlFade-3 { | ||
0% { | ||
color: #ccc; | ||
color: rgba(255, 255, 255, 0.4); | ||
} | ||
|
||
9.52381%, | ||
33.33333% { | ||
color: white; | ||
color: rgba(255, 255, 255, 0.8); | ||
} | ||
|
||
42.85714% { | ||
color: #ccc; | ||
color: rgba(255, 255, 255, 0.4); | ||
} | ||
} | ||
|
||
@keyframes galleryAnimation-3 { | ||
0% { | ||
opacity: 0; | ||
} | ||
|
||
9.52381%, | ||
33.33333% { | ||
opacity: 1; | ||
} | ||
|
||
42.85714% { | ||
opacity: 0; | ||
} | ||
} | ||
|
||
.items-3 .control-button { | ||
animation: controlFade-3 21s infinite; | ||
} | ||
.items-3 .item { | ||
animation: galleryAnimation-3 21s infinite; | ||
} | ||
.items-3 .control-operator:nth-of-type(1):target ~ .controls .control-button:nth-of-type(1) { | ||
color: white; | ||
color: rgba(255, 255, 255, 0.8); | ||
} | ||
.items-3 .control-button:nth-of-type(1), | ||
.items-3 .item:nth-of-type(1) { | ||
animation-delay: -2s; | ||
} | ||
.items-3 .control-operator:nth-of-type(2):target ~ .controls .control-button:nth-of-type(2) { | ||
color: white; | ||
color: rgba(255, 255, 255, 0.8); | ||
} | ||
.items-3 .control-button:nth-of-type(2), | ||
.items-3 .item:nth-of-type(2) { | ||
animation-delay: 5s; | ||
} | ||
.items-3 .control-operator:nth-of-type(3):target ~ .controls .control-button:nth-of-type(3) { | ||
color: white; | ||
color: rgba(255, 255, 255, 0.8); | ||
} | ||
.items-3 .control-button:nth-of-type(3), | ||
.items-3 .item:nth-of-type(3) { | ||
animation-delay: 12s; | ||
} | ||
|
||
@keyframes controlFade-4 { | ||
0% { | ||
color: #ccc; | ||
color: rgba(255, 255, 255, 0.4); | ||
} | ||
|
||
7.14286%, | ||
25% { | ||
color: white; | ||
color: rgba(255, 255, 255, 0.8); | ||
} | ||
|
||
32.14286% { | ||
color: #ccc; | ||
color: rgba(255, 255, 255, 0.4); | ||
} | ||
} | ||
|
||
@keyframes galleryAnimation-4 { | ||
0% { | ||
opacity: 0; | ||
} | ||
|
||
7.14286%, | ||
25% { | ||
opacity: 1; | ||
} | ||
|
||
32.14286% { | ||
opacity: 0; | ||
} | ||
} | ||
|
||
.items-4 .control-button { | ||
animation: controlFade-4 28s infinite; | ||
} | ||
.items-4 .item { | ||
animation: galleryAnimation-4 28s infinite; | ||
} | ||
.items-4 .control-operator:nth-of-type(1):target ~ .controls .control-button:nth-of-type(1) { | ||
color: white; | ||
color: rgba(255, 255, 255, 0.8); | ||
} | ||
.items-4 .control-button:nth-of-type(1), | ||
.items-4 .item:nth-of-type(1) { | ||
animation-delay: -2s; | ||
} | ||
.items-4 .control-operator:nth-of-type(2):target ~ .controls .control-button:nth-of-type(2) { | ||
color: white; | ||
color: rgba(255, 255, 255, 0.8); | ||
} | ||
.items-4 .control-button:nth-of-type(2), | ||
.items-4 .item:nth-of-type(2) { | ||
animation-delay: 5s; | ||
} | ||
.items-4 .control-operator:nth-of-type(3):target ~ .controls .control-button:nth-of-type(3) { | ||
color: white; | ||
color: rgba(255, 255, 255, 0.8); | ||
} | ||
.items-4 .control-button:nth-of-type(3), | ||
.items-4 .item:nth-of-type(3) { | ||
animation-delay: 12s; | ||
} | ||
.items-4 .control-operator:nth-of-type(4):target ~ .controls .control-button:nth-of-type(4) { | ||
color: white; | ||
color: rgba(255, 255, 255, 0.8); | ||
} | ||
.items-4 .control-button:nth-of-type(4), | ||
.items-4 .item:nth-of-type(4) { | ||
animation-delay: 19s; | ||
} | ||
|
||
@keyframes controlFade-5 { | ||
0% { | ||
color: #ccc; | ||
color: rgba(255, 255, 255, 0.4); | ||
} | ||
|
||
5.71429%, | ||
20% { | ||
color: white; | ||
color: rgba(255, 255, 255, 0.8); | ||
} | ||
|
||
25.71429% { | ||
color: #ccc; | ||
color: rgba(255, 255, 255, 0.4); | ||
} | ||
} | ||
|
||
@keyframes galleryAnimation-5 { | ||
0% { | ||
opacity: 0; | ||
} | ||
|
||
5.71429%, | ||
20% { | ||
opacity: 1; | ||
} | ||
|
||
25.71429% { | ||
opacity: 0; | ||
} | ||
} | ||
|
||
.items-5 .control-button { | ||
animation: controlFade-5 35s infinite; | ||
} | ||
.items-5 .item { | ||
animation: galleryAnimation-5 35s infinite; | ||
} | ||
.items-5 .control-operator:nth-of-type(1):target ~ .controls .control-button:nth-of-type(1) { | ||
color: white; | ||
color: rgba(255, 255, 255, 0.8); | ||
} | ||
.items-5 .control-button:nth-of-type(1), | ||
.items-5 .item:nth-of-type(1) { | ||
animation-delay: -2s; | ||
} | ||
.items-5 .control-operator:nth-of-type(2):target ~ .controls .control-button:nth-of-type(2) { | ||
color: white; | ||
color: rgba(255, 255, 255, 0.8); | ||
} | ||
.items-5 .control-button:nth-of-type(2), | ||
.items-5 .item:nth-of-type(2) { | ||
animation-delay: 5s; | ||
} | ||
.items-5 .control-operator:nth-of-type(3):target ~ .controls .control-button:nth-of-type(3) { | ||
color: white; | ||
color: rgba(255, 255, 255, 0.8); | ||
} | ||
.items-5 .control-button:nth-of-type(3), | ||
.items-5 .item:nth-of-type(3) { | ||
animation-delay: 12s; | ||
} | ||
.items-5 .control-operator:nth-of-type(4):target ~ .controls .control-button:nth-of-type(4) { | ||
color: white; | ||
color: rgba(255, 255, 255, 0.8); | ||
} | ||
.items-5 .control-button:nth-of-type(4), | ||
.items-5 .item:nth-of-type(4) { | ||
animation-delay: 19s; | ||
} | ||
.items-5 .control-operator:nth-of-type(5):target ~ .controls .control-button:nth-of-type(5) { | ||
color: white; | ||
color: rgba(255, 255, 255, 0.8); | ||
} | ||
.items-5 .control-button:nth-of-type(5), | ||
.items-5 .item:nth-of-type(5) { | ||
animation-delay: 26s; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.