Added different gif versions

This commit is contained in:
Kristofers Solo 2023-01-20 15:57:21 +02:00
parent e1a2ea2a8d
commit f7a7e1b3b7
5 changed files with 8 additions and 5 deletions

View File

@ -20,6 +20,7 @@
top: 30%;
}
img,
video {
width: clamp(20rem, 50%, 70rem);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 MiB

View File

@ -14,11 +14,13 @@
{% block content %}
<div id="landing">
<div class="landing-title">
<video autoplay
loop
src="{% static 'main/img/hello-there.mp4' %}"
type="video/mp4"
alt="Hello there.">
<video autoplay loop muted playsinline alt="Hello there.">
<source src="{% static 'main/img/hello-there/hello-there.mp4' %}"
type="video/mp4">
<source src="{% static 'main/img/hello-there/hello-there.mp4' %}"
type="video/mp4"
onerror="fallback(parentNode)">
<img src="{% static 'main/img/hello-there/hello-there.gif' %}">
</video>
<h1 class="text">
I&#39;m <span id="swap-text">Kristofers Solo</span>