From 579723466d91a5db1b119a90241f13fa9ab2f39e Mon Sep 17 00:00:00 2001 From: James Dinh Date: Fri, 3 Jun 2022 01:42:59 -0700 Subject: [PATCH] Added animations --- .DS_Store | Bin 0 -> 6148 bytes css/general.css | 29 +++++++++++++++++++++++++---- img/.DS_Store | Bin 0 -> 6148 bytes index.html | 4 ++-- js/scroll_element.js | 20 ++++++++++++++++++++ 5 files changed, 47 insertions(+), 6 deletions(-) create mode 100644 .DS_Store create mode 100644 img/.DS_Store create mode 100644 js/scroll_element.js diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..02a0be4a91bfa3e37b8c2701a9a72f8c600ce055 GIT binary patch literal 6148 zcmeHKL2uJA6n<_4OE)2U0I>^FB(Brw7$6Xr(2WCEg5UtCBui<-QhRDr%2ZX#b?{?2 z@=y3LoZx%5hnAM9H-t7n$^M?7-{QzloX=bS z%{zCWyyzX~BdJbwVI;75X}f0e6u!XuQ}(B5EOR9Xh;jaP8c;?#jUmc04Jn3*hmdg_ zsAyCdsllwXVy<9c4Cz)Bxgcm0a*k+F7mmIy2)B+bNh$T|Go&6;2~J+;h}#RC27O$5 zyT2~vV0h`wzV`mcrK{W(>=bYctWtpYhX9Q+v{)I`TL(IQ1ps;oYlE+U{(%7pfT6|8 zAR;hfs6ay%_KG3w-9Z>S=0lrb88mbf`pH1)KtP1)65q z=JWsA`S<@i$&H)>PJs)hfbjOC{VqzfXX{dNeAWhN@6p&euQI49= .prize-content { transform: rotate3d(0, 1, 0, 360deg); - transition: 0.5s; + transition: ease-in-out 0.5s; } .prize-laurel { @@ -872,15 +893,15 @@ input[data-description="5"]:checked ~ #timeline-descriptions-wrapper div[data-de .prize-title { position: absolute; - color: rgb(77, 218, 211); + color: rgb(167, 146, 234); font-size: 25px; - margin-bottom: 45px; + margin-bottom: 60px; } .prize-content { color:rgb(129, 218, 126); font-size: 20px; - height: 20px; + height: 25px; position: absolute; } diff --git a/img/.DS_Store b/img/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..908f667f67631777c84740cb9cd7ffc641d8a249 GIT binary patch literal 6148 zcmeHKJxc>Y5Phpx1Z`4Uh-_&k_z#W{zd*1^VIhL~A_Pw(CPD1(pX-~QDU30&7KTJ- zj@h@F-TBye+-?>?Xw3(wKodZNDp>5X`9Wk{bV+v1B7-5tIKc~^F}kWI{iWG%a0Z-# zO=Cbm?jE{$#S~w@-(EH8vDoIvH=*qi7Z{_W#{}<)xTJRSo469BW8@=W&KmG zMBeO>{aJRt-1mEH`Eu8h%fG~xdVj;wrhQl2P*2bz8~fW(tk>uaI0I{CK=y}76)X*F z#k6&>Nml@3L30xJPl4CU{{Qw?zBgnR~pue>W*NSk6@XD-B3cx z&iFA+M<^A&bq1V)MFw{DXH(Aqv(@+iMJNB|3^)V-ih)qHJM9*iWM}Kr;^eH2)Ca1F n%&QfX3mZF*Q%8>C18NeEMd=Vr!&;FRivJNvG -
+

Signup Instructions

@@ -471,6 +471,6 @@ All Rights Reserved - + \ No newline at end of file diff --git a/js/scroll_element.js b/js/scroll_element.js new file mode 100644 index 0000000..a1e8a0d --- /dev/null +++ b/js/scroll_element.js @@ -0,0 +1,20 @@ +const observer = new IntersectionObserver(entries => { + // Loop over the entries + entries.forEach(entry => { + // If the element is visible + if (entry.isIntersecting) { + // Add the animation class + entry.target.classList.add('slide-animation'); + } + }); + }); + + observer.observe(document.querySelector('#event-main-box')); + observer.observe(document.querySelector('#timeline')); + observer.observe(document.querySelector('#signup-article')); + observer.observe(document.querySelector('#rules-description')); + observer.observe(document.querySelector('#guidelines')); + observer.observe(document.querySelector('#code-of-conduct')); + observer.observe(document.querySelector('#photo-release-container')); + observer.observe(document.querySelector('#prizes-container')); + observer.observe(document.querySelector('#team-container')); \ No newline at end of file