Skip to content

Commit

Permalink
Merge branch 'main' into french
Browse files Browse the repository at this point in the history
  • Loading branch information
bleucitron committed Jan 13, 2025
2 parents 0439981 + 17c672a commit 69e732f
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@

<style>
h1 {
font-size: 2rem;
font-weight: 700;
transition: color 0.2s;
}
Expand All @@ -53,6 +55,9 @@
transform: translate(-2px,-2px);
filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.2));
transition: all 0.1s;
color: black;
font-weight: 700;
font-size: 2rem;
}
button[aria-current="true"] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
<style>
h1 {
transition: color 0.2s;
font-size: 2rem;
font-weight: 700;
}
div {
Expand All @@ -35,6 +37,9 @@
transform: translate(-2px,-2px);
filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.2));
transition: all 0.1s;
color: black;
font-weight: 700;
font-size: 2rem;
}
button[aria-current="true"] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
function spin(node, { duration }) {
return {
duration,
css: (t) => ``
css: (t, u) => ``
};
}
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
function spin(node, { duration }) {
return {
duration,
css: (t) => {
css: (t, u) => {
const eased = elasticOut(t);
return `
transform: scale(${eased}) rotate(${eased * 1080}deg);
color: hsl(
${Math.trunc(t * 360)},
${Math.min(100, 1000 * (1 - t))}%,
${Math.min(50, 500 * (1 - t))}%
${Math.min(100, 1000 * u)}%,
${Math.min(50, 500 * u)}%
);`;
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ We can get a lot more creative though. Let's make something truly gratuitous:
function spin(node, { duration }) {
return {
duration,
css: t => +++{
css: (t, u) => +++{
const eased = elasticOut(t);
return `
transform: scale(${eased}) rotate(${eased * 1080}deg);
color: hsl(
${Math.trunc(t * 360)},
${Math.min(100, 1000 * (1 - t))}%,
${Math.min(50, 500 * (1 - t))}%
${Math.min(100, 1000 * u)}%,
${Math.min(50, 500 * u)}%
);`
}+++
};
Expand Down

0 comments on commit 69e732f

Please sign in to comment.