mirror of
https://github.com/Steffo99/estus.git
synced 2024-11-23 08:04:19 +00:00
IT'S THE FINAL 🐟
This commit is contained in:
parent
ede896afea
commit
62f65a1ac2
2 changed files with 25 additions and 4 deletions
|
@ -226,7 +226,8 @@ class Pesce:
|
||||||
self.name = str(origin_obj)
|
self.name = str(origin_obj)
|
||||||
self.size = random.gauss(avgsize, variation)
|
self.size = random.gauss(avgsize, variation)
|
||||||
self.color = "{:02x}".format(random.randrange(0, 16777216))
|
self.color = "{:02x}".format(random.randrange(0, 16777216))
|
||||||
self.position = (random.randrange(0, 1423), random.randrange(52, 600))
|
self.position = (random.randrange(0, 1260 - int(100 * self.size)), random.randrange(72, 620))
|
||||||
|
self.delay = random.random() * 10
|
||||||
self.link = link
|
self.link = link
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
|
|
|
@ -2,18 +2,38 @@
|
||||||
{% block title %}Acquario • estus{% endblock %}
|
{% block title %}Acquario • estus{% endblock %}
|
||||||
{% block extrahead %}
|
{% block extrahead %}
|
||||||
<style>
|
<style>
|
||||||
|
@keyframes fish {
|
||||||
|
0% {
|
||||||
|
transform: translate(0px, 0px);
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
transform: translate(0px, 20px);
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
transform: translate(0px, 0px);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.fish {
|
||||||
|
animation: fish 5s infinite;
|
||||||
|
animation-direction: alternate;
|
||||||
|
animation-timing-function: cubic-bezier(.46,.03,.52,.96);
|
||||||
|
}
|
||||||
|
|
||||||
{% for fish in pheesh %}
|
{% for fish in pheesh %}
|
||||||
#fish{{ loop.index }}
|
#fish{{ loop.index }}
|
||||||
{
|
{
|
||||||
color: #{{ fish.color }};
|
color: #{{ fish.color }};
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: {{ fish.position[1] }};
|
top: {{ fish.position[1] }}px;
|
||||||
left: {{ fish.position[0] }};
|
left: {{ fish.position[0] }}px;
|
||||||
|
animation-delay: -{{ fish.delay }}s;
|
||||||
}
|
}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background-color: royalblue !important;
|
backround-repeat: no-repeat;
|
||||||
|
background: linear-gradient(#003366, darkblue) fixed;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
|
|
Loading…
Reference in a new issue