rDrama/files/templates/CHRISTMAS/awards/Christmas/Sleighs.html

91 lines
1.7 KiB
HTML
Raw Normal View History

2021-12-11 17:47:18 +00:00
<!-- For use in Submission (threads) page only -->
<!-- Include in /templates/submission/submission.html -->
<!-- Requires `p` object -->
2021-12-14 22:48:37 +00:00
<img class="train1" src="/assets/CHRISTMAS/santasleigh.gif">
2021-12-11 17:47:18 +00:00
{% if p.award_count("train") > 1 %}
2021-12-14 22:48:37 +00:00
<img class="train2" src="/assets/CHRISTMAS/santasleigh.gif">
2021-12-11 17:47:18 +00:00
{% endif %}
{% if p.award_count("train") > 2 %}
2021-12-14 22:48:37 +00:00
<img class="train3" src="/assets/CHRISTMAS/santasleigh.gif">
2021-12-11 17:47:18 +00:00
{% endif %}
{% if p.award_count("train") > 3 %}
2021-12-14 22:48:37 +00:00
<img class="train4" src="/assets/CHRISTMAS/santasleigh.gif">
2021-12-11 17:47:18 +00:00
{% endif %}
<style>
@keyframes train {
0% {
2021-12-12 05:20:51 +00:00
right: 0%;
2021-12-11 17:47:18 +00:00
}
100% {
2021-12-12 05:20:51 +00:00
right: 100%;
2021-12-11 17:47:18 +00:00
}
}
@keyframes trainrev {
0% {
2021-12-12 05:20:51 +00:00
right: 100%;
2021-12-11 17:47:18 +00:00
}
100% {
2021-12-12 05:20:51 +00:00
right: 0%;
2021-12-11 17:47:18 +00:00
}
}
@media (max-width: 768px) {
.train1 {
2021-12-13 04:32:47 +00:00
position: fixed;
2021-12-11 17:47:18 +00:00
z-index: 10;
2021-12-13 04:32:21 +00:00
width: 150px;
2021-12-11 17:47:18 +00:00
animation: train 3s linear infinite !important;
2021-12-13 04:32:47 +00:00
top: 35%
2021-12-11 17:47:18 +00:00
}
.train2 {
display: none !important;
}
.train3 {
display: none !important;
}
.train4 {
display: none !important;
}
}
@media (min-width: 768px) {
.train1 {
position: absolute;
z-index: 10;
2021-12-12 05:21:43 +00:00
width: 150px;
2021-12-11 17:47:18 +00:00
animation: trainrev 5s linear infinite !important;
transform: scaleX(-1);
-webkit-transform: scaleX(-1);
top: 35%
}
.train2 {
position: absolute;
z-index: 10;
2021-12-12 05:21:43 +00:00
width: 150px;
2021-12-11 17:47:18 +00:00
animation: train 5s linear infinite !important;
top: 10%
}
.train3 {
position: absolute;
z-index: 10;
2021-12-12 05:21:43 +00:00
width: 150px;
2021-12-11 17:47:18 +00:00
animation: train 5s linear infinite !important;
top: 60%
}
.train4 {
position: absolute;
z-index: 10;
2021-12-12 05:21:43 +00:00
width: 150px;
2021-12-11 17:47:18 +00:00
animation: trainrev 5s linear infinite !important;
transform: scaleX(-1);
-webkit-transform: scaleX(-1);
top: 85%
}
}
</style>