nouvelle animation titre fenetre
This commit is contained in:
parent
233457d19e
commit
b5951cbd32
|
|
@ -26,6 +26,22 @@
|
|||
font-family: 'IM Fell English', serif;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
|
||||
@keyframes colorshift {
|
||||
0% { color: hsl(0, 60%, 70%); }
|
||||
25% { color: hsl(90, 60%, 70%); }
|
||||
50% { color: hsl(180, 60%, 70%); }
|
||||
75% { color: hsl(270, 60%, 70%); }
|
||||
100% { color: hsl(360, 60%, 70%); }
|
||||
}
|
||||
|
||||
@keyframes levite {
|
||||
0% { transform: translateY(0px); }
|
||||
50% { transform: translateY(-5px); }
|
||||
100% { transform: translateY(0px); }
|
||||
}
|
||||
|
||||
.fenetre {
|
||||
max-width: 500px;
|
||||
border: 1px solid black;
|
||||
|
|
@ -81,9 +97,13 @@
|
|||
</div>
|
||||
<script>
|
||||
const el = document.querySelector('.fenetre-nom');
|
||||
el.innerHTML = el.textContent.split('').map(c =>
|
||||
c === ' ' ? ' ' : `<span style="display:inline-block;transform:translateY(${Math.floor(Math.random()*8)-4}px)">${c}</span>`
|
||||
).join('');
|
||||
</script>
|
||||
el.innerHTML = el.textContent.split('').map((c, i) => {
|
||||
if (c === ' ') return ' ';
|
||||
const delayColor = (i * 0.3).toFixed(1);
|
||||
const delayLevite = (Math.random() * 4).toFixed(2);
|
||||
const duree = (3 + Math.random() * 3).toFixed(2);
|
||||
return `<span style="display:inline-block;animation:colorshift 6s ease-in-out infinite,levite ${duree}s ease-in-out infinite;animation-delay:-${delayColor}s,-${delayLevite}s">${c}</span>`;
|
||||
}).join('');
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -24,6 +24,22 @@
|
|||
font-family: 'IM Fell English', serif;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
|
||||
@keyframes colorshift {
|
||||
0% { color: hsl(0, 60%, 70%); }
|
||||
25% { color: hsl(90, 60%, 70%); }
|
||||
50% { color: hsl(180, 60%, 70%); }
|
||||
75% { color: hsl(270, 60%, 70%); }
|
||||
100% { color: hsl(360, 60%, 70%); }
|
||||
}
|
||||
|
||||
@keyframes levite {
|
||||
0% { transform: translateY(0px); }
|
||||
50% { transform: translateY(-5px); }
|
||||
100% { transform: translateY(0px); }
|
||||
}
|
||||
|
||||
.fenetre {
|
||||
max-width: 500px;
|
||||
border: 1px solid black;
|
||||
|
|
@ -78,9 +94,13 @@
|
|||
</div>
|
||||
<script>
|
||||
const el = document.querySelector('.fenetre-nom');
|
||||
el.innerHTML = el.textContent.split('').map(c =>
|
||||
c === ' ' ? ' ' : `<span style="display:inline-block;transform:translateY(${Math.floor(Math.random()*8)-4}px)">${c}</span>`
|
||||
).join('');
|
||||
</script>
|
||||
el.innerHTML = el.textContent.split('').map((c, i) => {
|
||||
if (c === ' ') return ' ';
|
||||
const delayColor = (i * 0.3).toFixed(1);
|
||||
const delayLevite = (Math.random() * 4).toFixed(2);
|
||||
const duree = (3 + Math.random() * 3).toFixed(2);
|
||||
return `<span style="display:inline-block;animation:colorshift 6s ease-in-out infinite,levite ${duree}s ease-in-out infinite;animation-delay:-${delayColor}s,-${delayLevite}s">${c}</span>`;
|
||||
}).join('');
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -24,6 +24,22 @@
|
|||
font-family: 'IM Fell English', serif;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
|
||||
@keyframes colorshift {
|
||||
0% { color: hsl(0, 60%, 70%); }
|
||||
25% { color: hsl(90, 60%, 70%); }
|
||||
50% { color: hsl(180, 60%, 70%); }
|
||||
75% { color: hsl(270, 60%, 70%); }
|
||||
100% { color: hsl(360, 60%, 70%); }
|
||||
}
|
||||
|
||||
@keyframes levite {
|
||||
0% { transform: translateY(0px); }
|
||||
50% { transform: translateY(-5px); }
|
||||
100% { transform: translateY(0px); }
|
||||
}
|
||||
|
||||
.fenetre {
|
||||
max-width: 500px;
|
||||
border: 1px solid black;
|
||||
|
|
@ -85,9 +101,13 @@
|
|||
</div>
|
||||
<script>
|
||||
const el = document.querySelector('.fenetre-nom');
|
||||
el.innerHTML = el.textContent.split('').map(c =>
|
||||
c === ' ' ? ' ' : `<span style="display:inline-block;transform:translateY(${Math.floor(Math.random()*8)-4}px)">${c}</span>`
|
||||
).join('');
|
||||
</script>
|
||||
el.innerHTML = el.textContent.split('').map((c, i) => {
|
||||
if (c === ' ') return ' ';
|
||||
const delayColor = (i * 0.3).toFixed(1);
|
||||
const delayLevite = (Math.random() * 4).toFixed(2);
|
||||
const duree = (3 + Math.random() * 3).toFixed(2);
|
||||
return `<span style="display:inline-block;animation:colorshift 6s ease-in-out infinite,levite ${duree}s ease-in-out infinite;animation-delay:-${delayColor}s,-${delayLevite}s">${c}</span>`;
|
||||
}).join('');
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -25,6 +25,22 @@
|
|||
font-family: 'IM Fell English', serif;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
@keyframes colorshift {
|
||||
0% { color: hsl(0, 60%, 70%); }
|
||||
25% { color: hsl(90, 60%, 70%); }
|
||||
50% { color: hsl(180, 60%, 70%); }
|
||||
75% { color: hsl(270, 60%, 70%); }
|
||||
100% { color: hsl(360, 60%, 70%); }
|
||||
}
|
||||
|
||||
@keyframes levite {
|
||||
0% { transform: translateY(0px); }
|
||||
50% { transform: translateY(-5px); }
|
||||
100% { transform: translateY(0px); }
|
||||
}
|
||||
|
||||
|
||||
.fenetre {
|
||||
max-width: 500px;
|
||||
border: 1px solid black;
|
||||
|
|
@ -79,9 +95,13 @@
|
|||
</div>
|
||||
<script>
|
||||
const el = document.querySelector('.fenetre-nom');
|
||||
el.innerHTML = el.textContent.split('').map(c =>
|
||||
c === ' ' ? ' ' : `<span style="display:inline-block;transform:translateY(${Math.floor(Math.random()*8)-4}px)">${c}</span>`
|
||||
).join('');
|
||||
</script>
|
||||
el.innerHTML = el.textContent.split('').map((c, i) => {
|
||||
if (c === ' ') return ' ';
|
||||
const delayColor = (i * 0.3).toFixed(1);
|
||||
const delayLevite = (Math.random() * 4).toFixed(2);
|
||||
const duree = (3 + Math.random() * 3).toFixed(2);
|
||||
return `<span style="display:inline-block;animation:colorshift 6s ease-in-out infinite,levite ${duree}s ease-in-out infinite;animation-delay:-${delayColor}s,-${delayLevite}s">${c}</span>`;
|
||||
}).join('');
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -14,6 +14,20 @@
|
|||
font-size: 20px;
|
||||
}
|
||||
|
||||
@keyframes colorshift {
|
||||
0% { color: hsl(0, 60%, 70%); }
|
||||
25% { color: hsl(90, 60%, 70%); }
|
||||
50% { color: hsl(180, 60%, 70%); }
|
||||
75% { color: hsl(270, 60%, 70%); }
|
||||
100% { color: hsl(360, 60%, 70%); }
|
||||
}
|
||||
|
||||
@keyframes levite {
|
||||
0% { transform: translateY(0px); }
|
||||
50% { transform: translateY(-5px); }
|
||||
100% { transform: translateY(0px); }
|
||||
}
|
||||
|
||||
.fenetre {
|
||||
max-width: 600px;
|
||||
border: 1px solid black;
|
||||
|
|
@ -154,9 +168,13 @@ fetch('/api/depeches')
|
|||
});
|
||||
|
||||
const el = document.getElementById('titre-nav');
|
||||
el.innerHTML = el.textContent.split('').map(c =>
|
||||
c === ' ' ? ' ' : `<span style="display:inline-block;transform:translateY(${Math.floor(Math.random()*8)-4}px)">${c}</span>`
|
||||
).join('');
|
||||
el.innerHTML = el.textContent.split('').map((c, i) => {
|
||||
if (c === ' ') return ' ';
|
||||
const delayColor = (i * 0.3).toFixed(1);
|
||||
const delayLevite = (Math.random() * 4).toFixed(2);
|
||||
const duree = (3 + Math.random() * 3).toFixed(2);
|
||||
return `<span style="display:inline-block;animation:colorshift 12s ease-in-out infinite,levite ${duree}s ease-in-out infinite;animation-delay:-${delayColor}s,-${delayLevite}s">${c}</span>`;
|
||||
}).join('');
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
54
index.html
54
index.html
|
|
@ -23,6 +23,20 @@
|
|||
font-family: 'IM Fell English', serif;
|
||||
font-size: 20px;
|
||||
}
|
||||
@keyframes colorshift {
|
||||
0% { color: hsl(0, 60%, 70%); }
|
||||
25% { color: hsl(90, 60%, 70%); }
|
||||
50% { color: hsl(180, 60%, 70%); }
|
||||
75% { color: hsl(270, 60%, 70%); }
|
||||
100% { color: hsl(360, 60%, 70%); }
|
||||
}
|
||||
|
||||
@keyframes levite {
|
||||
0% { transform: translateY(0px); }
|
||||
50% { transform: translateY(-5px); }
|
||||
100% { transform: translateY(0px); }
|
||||
}
|
||||
|
||||
.fenetre {
|
||||
max-width: 550px;
|
||||
border: 1px solid black;
|
||||
|
|
@ -49,7 +63,30 @@
|
|||
height: 400px;
|
||||
width: auto;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
.now {
|
||||
font-size: 0.75rem;
|
||||
font-style: italic;
|
||||
color: #555;
|
||||
padding-top: 0.6rem;
|
||||
margin-top: 0.8rem;
|
||||
margin-right: -3rem;
|
||||
line-height: 1.6;
|
||||
}
|
||||
.now-titre {
|
||||
font-style: normal;
|
||||
color: #999;
|
||||
font-size: 0.7rem;
|
||||
display: block;
|
||||
margin-bottom: 0.2rem;
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
body { font-size: 17px; }
|
||||
.fenetre { grid-template-columns: 1fr; }
|
||||
.fenetre img.perso { width: 100%; height: auto; }
|
||||
}
|
||||
|
||||
|
||||
@media (max-width: 600px) {
|
||||
body {
|
||||
|
|
@ -66,8 +103,9 @@
|
|||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<span class="fenetre-nom">eweng.space ☆</span>
|
||||
<div style="display:flex; align-items:baseline; justify-content:space-between; max-width:550px;">
|
||||
<span class="fenetre-nom" id="titre-nav">eweng.space ☆</span>
|
||||
<span class="now">/now : faut que je fasses les courses.</span>
|
||||
</div>
|
||||
<div class="fenetre">
|
||||
<div class="fenetre-contenu">
|
||||
|
|
@ -88,9 +126,13 @@
|
|||
</div>
|
||||
<script>
|
||||
const el = document.querySelector('.fenetre-nom');
|
||||
el.innerHTML = el.textContent.split('').map(c =>
|
||||
c === ' ' ? ' ' : `<span style="display:inline-block;transform:translateY(${Math.floor(Math.random()*8)-4}px)">${c}</span>`
|
||||
).join('');
|
||||
el.innerHTML = el.textContent.split('').map((c, i) => {
|
||||
if (c === ' ') return ' ';
|
||||
const delayColor = (i * 0.3).toFixed(1);
|
||||
const delayLevite = (Math.random() * 4).toFixed(2);
|
||||
const duree = (3 + Math.random() * 3).toFixed(2);
|
||||
return `<span style="display:inline-block;animation:colorshift 6s ease-in-out infinite,levite ${duree}s ease-in-out infinite;animation-delay:-${delayColor}s,-${delayLevite}s">${c}</span>`;
|
||||
}).join('');
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
25
qui.html
25
qui.html
|
|
@ -23,6 +23,21 @@
|
|||
font-family: 'IM Fell English', serif;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
@keyframes colorshift {
|
||||
0% { color: hsl(0, 60%, 70%); }
|
||||
25% { color: hsl(90, 60%, 70%); }
|
||||
50% { color: hsl(180, 60%, 70%); }
|
||||
75% { color: hsl(270, 60%, 70%); }
|
||||
100% { color: hsl(360, 60%, 70%); }
|
||||
}
|
||||
|
||||
@keyframes levite {
|
||||
0% { transform: translateY(0px); }
|
||||
50% { transform: translateY(-5px); }
|
||||
100% { transform: translateY(0px); }
|
||||
}
|
||||
|
||||
.fenetre {
|
||||
max-width: 950px;
|
||||
border: 1px solid black;
|
||||
|
|
@ -92,9 +107,13 @@
|
|||
</div>
|
||||
<script>
|
||||
const el = document.querySelector('.fenetre-nom');
|
||||
el.innerHTML = el.textContent.split('').map(c =>
|
||||
c === ' ' ? ' ' : `<span style="display:inline-block;transform:translateY(${Math.floor(Math.random()*8)-4}px)">${c}</span>`
|
||||
).join('');
|
||||
el.innerHTML = el.textContent.split('').map((c, i) => {
|
||||
if (c === ' ') return ' ';
|
||||
const delayColor = (i * 0.3).toFixed(1);
|
||||
const delayLevite = (Math.random() * 4).toFixed(2);
|
||||
const duree = (3 + Math.random() * 3).toFixed(2);
|
||||
return `<span style="display:inline-block;animation:colorshift 6s ease-in-out infinite,levite ${duree}s ease-in-out infinite;animation-delay:-${delayColor}s,-${delayLevite}s">${c}</span>`;
|
||||
}).join('');
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -13,6 +13,20 @@
|
|||
font-family: 'IM Fell English', serif;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
@keyframes colorshift {
|
||||
0% { color: hsl(0, 60%, 70%); }
|
||||
25% { color: hsl(90, 60%, 70%); }
|
||||
50% { color: hsl(180, 60%, 70%); }
|
||||
75% { color: hsl(270, 60%, 70%); }
|
||||
100% { color: hsl(360, 60%, 70%); }
|
||||
}
|
||||
|
||||
@keyframes levite {
|
||||
0% { transform: translateY(0px); }
|
||||
50% { transform: translateY(-5px); }
|
||||
100% { transform: translateY(0px); }
|
||||
}
|
||||
|
||||
.fenetre {
|
||||
max-width: 900px;
|
||||
|
|
@ -192,11 +206,14 @@
|
|||
</div>
|
||||
|
||||
<script>
|
||||
const el = document.getElementById('titre-nav');
|
||||
el.innerHTML = el.textContent.split('').map(c =>
|
||||
c === ' ' ? ' ' : `<span style="display:inline-block;transform:translateY(${Math.floor(Math.random()*8)-4}px)">${c}</span>`
|
||||
).join('');
|
||||
|
||||
const el = document.querySelector('.fenetre-nom');
|
||||
el.innerHTML = el.textContent.split('').map((c, i) => {
|
||||
if (c === ' ') return ' ';
|
||||
const delayColor = (i * 0.3).toFixed(1);
|
||||
const delayLevite = (Math.random() * 4).toFixed(2);
|
||||
const duree = (3 + Math.random() * 3).toFixed(2);
|
||||
return `<span style="display:inline-block;animation:colorshift 6s ease-in-out infinite,levite ${duree}s ease-in-out infinite;animation-delay:-${delayColor}s,-${delayLevite}s">${c}</span>`;
|
||||
}).join('');
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -14,7 +14,20 @@
|
|||
font-size: 20px;
|
||||
}
|
||||
|
||||
/* ── identique à ton site ── */
|
||||
@keyframes colorshift {
|
||||
0% { color: hsl(0, 60%, 70%); }
|
||||
25% { color: hsl(90, 60%, 70%); }
|
||||
50% { color: hsl(180, 60%, 70%); }
|
||||
75% { color: hsl(270, 60%, 70%); }
|
||||
100% { color: hsl(360, 60%, 70%); }
|
||||
}
|
||||
|
||||
@keyframes levite {
|
||||
0% { transform: translateY(0px); }
|
||||
50% { transform: translateY(-5px); }
|
||||
100% { transform: translateY(0px); }
|
||||
}
|
||||
|
||||
.fenetre {
|
||||
max-width: 600px;
|
||||
border: 1px solid black;
|
||||
|
|
@ -33,7 +46,6 @@
|
|||
min-width: 0;
|
||||
}
|
||||
|
||||
/* ── nav retour ── */
|
||||
.retour {
|
||||
font-family: 'IM Fell English', serif;
|
||||
font-size: 20px;
|
||||
|
|
@ -181,11 +193,14 @@ fetch('data/albums.json')
|
|||
document.getElementById('grille').textContent = 'impossible de charger les albums.';
|
||||
});
|
||||
|
||||
// animation titre
|
||||
const el = document.getElementById('titre-nav');
|
||||
el.innerHTML = el.textContent.split('').map(c =>
|
||||
c === ' ' ? ' ' : `<span style="display:inline-block;transform:translateY(${Math.floor(Math.random()*8)-4}px)">${c}</span>`
|
||||
).join('');
|
||||
el.innerHTML = el.textContent.split('').map((c, i) => {
|
||||
if (c === ' ') return ' ';
|
||||
const delayColor = (i * 0.3).toFixed(1);
|
||||
const delayLevite = (Math.random() * 4).toFixed(2);
|
||||
const duree = (3 + Math.random() * 3).toFixed(2);
|
||||
return `<span style="display:inline-block;animation:colorshift 12s ease-in-out infinite,levite ${duree}s ease-in-out infinite;animation-delay:-${delayColor}s,-${delayLevite}s">${c}</span>`;
|
||||
}).join('');
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in a new issue