Skip to content

Commit

Permalink
Merge pull request #654 from 0nikhilkumar/master
Browse files Browse the repository at this point in the history
Add - adding new bouncing animation #639
  • Loading branch information
NiallEccles authored Oct 11, 2023
2 parents 602f1e4 + 9e80602 commit 21e816e
Show file tree
Hide file tree
Showing 2 changed files with 106 additions and 0 deletions.
1 change: 1 addition & 0 deletions animations.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ window.animations = [
{ name: 'borderblend', author: 'erikadionn' },
{ name: 'borderedbackandfourth', author: 'mamadou-diallo' },
{ name: 'bounceReflection', author: 'Samar1110' },
{ name: 'newBouncingRefelection', author: '0nikhilkumar'},
{ name: 'bounce-simple', author: 'joedag32' },
{ name: 'bounce', author: 'Biafer' },
{ name: 'bounce', author: 'marekgebka' },
Expand Down
105 changes: 105 additions & 0 deletions animations/newBouncingRefelection.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
/** @ format */


@import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&display=swap');

:root {
--color-primary: #f6aca2;
--color-secondary: #f49b90;
--color-tertiary: #f28b7d;
--color-quaternary: #f07a6a;
--color-quinary: #ee6352;
/*
--color-primary: #5192ED;
--color-secondary: #69A1F0;
--color-tertiary: #7EAEF2;
--color-quaternary: #90BAF5;
--color-quinary: #A2C4F5;
*/
}



.newBouncingRefelection {
display: flex;
align-content: center;
justify-content: center;
}

.newBouncingRefelection {
text-shadow: 3px 3px 0 var(--color-secondary), 6px 6px 0 var(--color-tertiary),
9px 9px var(--color-quaternary), 12px 12px 0 var(--color-quinary);
font-family: bungee, sans-serif;
font-weight: 400;
text-transform: uppercase;
font-size: calc(2rem + 5vw);
text-align: center;
margin: 0;
color: var(--color-primary);
animation: shadows 1.2s ease-in infinite, move 1.2s ease-in infinite;
letter-spacing: 0.4rem;
}

@keyframes newBouncingRefelection {
0% {
text-shadow: none;
}
10% {
text-shadow: 3px 3px 0 var(--color-secondary);
}
20% {
text-shadow: 3px 3px 0 var(--color-secondary),
6px 6px 0 var(--color-tertiary);
}
30% {
text-shadow: 3px 3px 0 var(--color-secondary),
6px 6px 0 var(--color-tertiary), 9px 9px var(--color-quaternary);
}
40% {
text-shadow: 3px 3px 0 var(--color-secondary),
6px 6px 0 var(--color-tertiary), 9px 9px var(--color-quaternary),
12px 12px 0 var(--color-quinary);
}
50% {
text-shadow: 3px 3px 0 var(--color-secondary),
6px 6px 0 var(--color-tertiary), 9px 9px var(--color-quaternary),
12px 12px 0 var(--color-quinary);
}
60% {
text-shadow: 3px 3px 0 var(--color-secondary),
6px 6px 0 var(--color-tertiary), 9px 9px var(--color-quaternary),
12px 12px 0 var(--color-quinary);
}
70% {
text-shadow: 3px 3px 0 var(--color-secondary),
6px 6px 0 var(--color-tertiary), 9px 9px var(--color-quaternary);
}
80% {
text-shadow: 3px 3px 0 var(--color-secondary),
6px 6px 0 var(--color-tertiary);
}
90% {
text-shadow: 3px 3px 0 var(--color-secondary);
}
100% {
text-shadow: none;
}
}

@keyframes move {
0% {
transform: translate(0px, 0px);
}
40% {
transform: translate(-12px, -12px);
}
50% {
transform: translate(-12px, -12px);
}
60% {
transform: translate(-12px, -12px);
}
100% {
transform: translate(0px, 0px);
}
}

0 comments on commit 21e816e

Please sign in to comment.