-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(event): spider easter egg halloween
- Loading branch information
1 parent
1caee97
commit a3cd947
Showing
4 changed files
with
236 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
html, | ||
body { | ||
height: 100%; | ||
overflow: hidden; | ||
} | ||
.container { | ||
position: absolute; | ||
top: 0; | ||
left: 50%; | ||
margin-left: -20px; | ||
animation: inicio 3s ease-in-out forwards; | ||
|
||
&__end { | ||
animation: endSpider 1s; | ||
} | ||
} | ||
.container::after { | ||
background: rgba(0, 0, 0, 0.5); | ||
content: ''; | ||
position: absolute; | ||
top: -1000px; | ||
left: 50%; | ||
margin-left: 9px; | ||
width: 1px; | ||
height: 1000px; | ||
} | ||
.container::before { | ||
background: #000000; | ||
border-radius: 100%; | ||
color: #fff; | ||
font-size: 1.3em; | ||
content: ' . .'; | ||
position: absolute; | ||
margin-top: -5px; | ||
margin-left: -2px; | ||
width: 25px; | ||
height: 25px; | ||
} | ||
.left { | ||
position: absolute; | ||
} | ||
.right { | ||
position: absolute; | ||
transform: rotateY(180deg); | ||
} | ||
.uno, | ||
.dos, | ||
.tres, | ||
.cuatro { | ||
background: rgba(0, 0, 0, 0.5); | ||
position: relative; | ||
width: 20px; | ||
height: 3px; | ||
} | ||
.uno > .uno, | ||
.dos > .dos, | ||
.tres > .tres, | ||
.cuatro > .cuatro { | ||
transform-origin: 20px top; | ||
transform: rotate(-80deg) translateX(20px); | ||
animation: seg 2.5s ease infinite; | ||
} | ||
.uno > .uno > .uno, | ||
.dos > .dos > .dos, | ||
.tres > .tres > .tres, | ||
.cuatro > .cuatro > .cuatro { | ||
transform-origin: 20px top; | ||
transform: rotate(10deg) translateX(20px); | ||
animation: seg 1.5s ease infinite; | ||
} | ||
.right > .dos > .dos { | ||
animation-delay: 200ms; | ||
} | ||
.dos > .dos { | ||
animation-delay: 400ms; | ||
} | ||
.dos > .dos > .dos { | ||
animation-delay: 200ms; | ||
} | ||
.right > .tres > .tres { | ||
animation-delay: 400ms; | ||
} | ||
.tres > .tres { | ||
animation-delay: 600ms; | ||
} | ||
.tres > .tres > .tres { | ||
animation-delay: 300ms; | ||
} | ||
.right > .cuatro > .cuatro { | ||
animation-delay: 100ms; | ||
} | ||
.cuatro > .cuatro { | ||
animation-delay: 800ms; | ||
} | ||
.cuatro > .cuatro > .cuatro { | ||
animation-delay: 400ms; | ||
} | ||
@keyframes seg { | ||
50% { | ||
transform: rotate(55deg) translateX(20px); | ||
} | ||
} | ||
@keyframes inicio { | ||
0% { | ||
opacity: 0; | ||
top: 0%; | ||
} | ||
|
||
100% { | ||
opacity: 1; | ||
top: 80%; | ||
} | ||
} | ||
|
||
@keyframes endSpider { | ||
0% { | ||
opacity: 1; | ||
top: 80%; | ||
} | ||
|
||
100% { | ||
opacity: 0; | ||
top: 0%; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<script> | ||
export let canEnd; | ||
</script> | ||
|
||
<style src="./Spider.scss"> | ||
</style> | ||
|
||
<div class={`container ${canEnd && 'container__end'}`}> | ||
<div class="left"> | ||
<div class="uno"> | ||
<div class="uno"> | ||
<div class="uno"> | ||
<div class="uno" /> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="dos"> | ||
<div class="dos"> | ||
<div class="dos"> | ||
<div class="dos" /> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="tres"> | ||
<div class="tres"> | ||
<div class="tres"> | ||
<div class="tres" /> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="cuatro"> | ||
<div class="cuatro"> | ||
<div class="cuatro"> | ||
<div class="cuatro" /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="right"> | ||
<div class="uno"> | ||
<div class="uno"> | ||
<div class="uno"> | ||
<div class="uno" /> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="dos"> | ||
<div class="dos"> | ||
<div class="dos"> | ||
<div class="dos" /> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="tres"> | ||
<div class="tres"> | ||
<div class="tres"> | ||
<div class="tres" /> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="cuatro"> | ||
<div class="cuatro"> | ||
<div class="cuatro"> | ||
<div class="cuatro" /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Spider from './Spider.svelte'; | ||
|
||
export default Spider; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters