From 1e17252358281423e1fcad5533830c0f40cd7758 Mon Sep 17 00:00:00 2001 From: BenjaminToby <52448020+BenjaminToby@users.noreply.github.com> Date: Sat, 19 Jun 2021 07:59:15 +0100 Subject: [PATCH] first commit in new environment --- index.html | 250 ++++-- main.css | 893 +++++++++----------- scripts/anime.js | 1312 ----------------------------- scripts/face.json | 1 - scripts/main.js | 465 +++++++---- scripts/morphing-shape-1.json | 1 - scripts/v2.js | 230 ------ scripts/v3.js | 368 --------- scripts/wavy-line.json | 1 - v2.css | 1459 --------------------------------- v2.html | 184 ----- v3.css | 645 --------------- v3.html | 228 ------ 13 files changed, 891 insertions(+), 5146 deletions(-) delete mode 100644 scripts/anime.js delete mode 100644 scripts/face.json delete mode 100644 scripts/morphing-shape-1.json delete mode 100644 scripts/v2.js delete mode 100644 scripts/v3.js delete mode 100644 scripts/wavy-line.json delete mode 100644 v2.css delete mode 100644 v2.html delete mode 100644 v3.css delete mode 100644 v3.html diff --git a/index.html b/index.html index fed5866..7efa520 100644 --- a/index.html +++ b/index.html @@ -7,91 +7,117 @@ - Tben Design + Tben Design V3 - - + + + + - + -
+ -
+
+ + + + + +
- Tbendesign - + + +
Tben.
Design
+
-
-
-
-
+
+
+ + + + + + + +
-
- - -
-
-
-
-
- -
-
-
-
- -
- +
+ +
+ +
-
-
+ + + + +
+
Benjamin
Toby
+
+ + + + + + + + + +
+
+

Some of My Work

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Quis ipsum suspendisse ultrices gravida. Risus commodo viverra maecenas accumsan lacus vel facilisis.

+
+ +
+
+
+ + + + + + + + + + + +
+
+
+ +
+

About Me

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Quis ipsum suspendisse ultrices gravida. Risus commodo viverra maecenas accumsan lacus vel facilisis.

@@ -102,9 +128,99 @@ - - + + +
+

My Tools For Creating Awesomeness

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Quis ipsum suspendisse ultrices gravida. Risus commodo viverra maecenas accumsan lacus vel facilisis.

+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + + + + + + + + + + +
+
+

So. Let's have a chat

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Quis ipsum suspendisse ultrices gravida. Risus commodo viverra maecenas accumsan lacus vel facilisis.

+
+ +
+ +
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+ Simple HTML email form provided by: FreeContactForm.com +
+ +
+ +
+
+ + + + + + + + + + + + + + + diff --git a/main.css b/main.css index 329a751..a54e7b7 100644 --- a/main.css +++ b/main.css @@ -9,11 +9,25 @@ html { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; - font-family: Poppins, Helvetica; + font-family: "Poppins", Helvetica; font-display: swap; font-size: 18px; line-height: 1.5; color: #222; + position: relative; +/* + animation-timing-function: linear; + transition-timing-function: linear; +*/ +} + +:root { + --main-color: #747bef; + --base-color: #222; + --sec-color-1: #ed7d71; + --sec-color-2: #faa096; + --sec-color-3: #75F0E6; + --dark-color: #1c3766; } @@ -21,115 +35,228 @@ html { body { width: 100%; - display: block; margin: 0px; overflow: hidden; - /*background-color: #B8FFE1;*/ + display: flex; + flex-direction: column; + align-items: center; } header { + position: fixed; + left: 0; + top: 0; width: 100%; - padding: 20px 40px; + z-index: 1000; + padding: 40px; display: flex; align-items: center; justify-content: space-between; + height: 140px; + overflow: hidden; + perspective: 500; + transition: all .3s ease; +} + +header * { +/* transition: all .5s ease;*/ +} + +header.scrolled { + padding: 20px; + background-color: white; +/* box-shadow: 0px 0px 20px -5px rgba(0,0,0,0.4);*/ + height: 80px; +} + +#header-controller { + position: absolute; + width: 100%; + height: 15vh; + top: 0; + left: 0; + background: lightgray; +} + +header img { + width: 40px; + margin-right: 10px; +/* transition: all .3s ease;*/ position: relative; - z-index: 1000; + top: 0; +} + +header > a { + font-family: "Poppins"; + border: none; + color: inherit; + display: flex; + align-items: center; + font-weight: 900; + position: relative; + perspective: 500px; + transform-style: preserve-3d; +} + +header > a > div { + line-height: 16px; + font-size: 24px; + color: var(--dark-color); +/* transition: all .3s ease;*/ +} + +nav { + display: flex; + align-items: center; + color: inherit; +} + +nav > a:not(.social-media-links) { + font-size: 16px; + font-weight: 500; + padding: 10px 15px; + background-size: 100%; + background-repeat: no-repeat; + background-position: -200px 41px; + background-image: linear-gradient(90deg, var(--main-color), var(--sec-color-1)); + color: inherit; + transition: background .3s ease; +} + +nav > a:not(.social-media-links):hover { + color: var(--sec-color-1); + background-position: 0px 41px; } section { + display: flex; + position: relative; + width: 100%; + perspective: 500px; + padding: 0; + margin: 0; + height: 100vh; + overflow: hidden; + align-items: stretch; +} + +section > div { + width: 50%; display: flex; flex-direction: column; - align-items: center; + align-items: flex-start; justify-content: center; - padding: 60px 40px; + perspective: 500px; + transform-style: preserve-3d; + padding: 15%; position: relative; } +section > div p{ + width: 350px; + color: inherit; +} -/*................................................... Text */ + + + + +/*############################################# -- Text */ a { text-decoration: none; - color: #222222; - border-bottom: 2px solid #222222; + color: var(--dark-color); + border: none; cursor: pointer; font-size: inherit; +/* transition: all .3s ease-out;*/ } a:hover { - border-bottom: 4px solid transparent; + border: none; +} + +h1, h2, h3, h4 { + font-family: "Poppins"; + margin-top: 0px; + margin-bottom: 15px; + width: 100%; + line-height: 1.2; + color: inherit; + font-weight: 700; } h1 { - font-size: 64px; - margin-top: 0px; - margin-bottom: 15px; - color: inherit; - font-weight: 700; - width: 100%; - line-height: 1.2; + + font-size: 42px; } h2 { - font-size: 36px; - margin-top: 0px; - margin-bottom: 15px; - color: #252132; - font-weight: 700; - width: 100%; - line-height: 1.5; + font-size: 32px; + width: auto; } h3 { - font-size: 24px; - margin-top: 0px; - margin-bottom: 10px; - color: inherit; - text-align: inherit; - width: 100%; - line-height: 1.5; + } h4 { - font-size: 18px; - margin-top: 0px; - margin-bottom: 10px; - color: inherit; - width: 100%; - line-height: 1.5; + } p { - font-size: 16px; + font-size: 20px; line-height: 1.5; margin-top: 0px; margin-bottom: 20px; - color: #48494e; width: 100%; font-weight: 400; } span { font-size: inherit; + font-weight: inherit; + font-family: inherit; + color: inherit; + letter-spacing: inherit; + line-height: inherit; +} + +span > a { + font-size: inherit; + font-weight: inherit; + font-family: inherit; + color: inherit; + letter-spacing: inherit; + line-height: inherit; + border: inherit; + border-color: inherit; +} + +span > a:hover { + border: inherit; + border-color: inherit; } -/*................................................... Interactives */ +/*###################################################### -- Interactives */ button { border: none; - background-color: black; + background-color: var(--dark-color); padding: 10px 20px; color: white; - cursor: pointer; + cursor: pointer; + background-image: linear-gradient(var(--main-color),var(--main-color)); + background-repeat: no-repeat; + background-position: 0px 67px; } button:hover { - background-color: darkblue; + background-position: 0px 0px; } input, textarea { @@ -160,359 +287,263 @@ input:focus { -/*................................................... General classes and IDs */ -.container-1200px { - width: 100%; - max-width: 1200px; +/*############################################################# -- General classes and IDs -- */ + + + +.social-media-links { + width: 40px; + height: 40px; + border-radius: 50%; + margin: 5px; display: flex; - align-items: flex-start; - position: relative; + align-items: center; + justify-content: center; + color: white; + font-size: 18px; + background-color: var(--sec-color-1); } -.column-50 { - display: flex; - flex-direction: column; +#mail { + background-color: var(--sec-color-2); +} + +#linkedin { + background-color: var(--main-color); +} + +#behance { + background-color: var(--dark-color); + margin-right: 0; +} + +.scroll-into-view { + padding: 0; + width: 0; + transition: all .7s cubic-bezier(0.93, 0, 0.09, 1); +} + +.scrolled-into-view { width: 50%; - position: relative; + padding: 40px; } - - -/*................................................... Nav */ -.nav-link-block { - font-size: 30px; - font-weight: 800; - opacity: .6; - transition: all .3s ease-out; - +.scroll-into-view-content { + transform: translateY(80px) rotateX(5deg); + transition: all 1s cubic-bezier(0.1, 0.63, 0.355, 1); + opacity: 0; } -.nav-link-block:hover { +.scrolled-into-view-content { + transform: none; opacity: 1; } -.navlink-li { - display: inline-block; + + + + + + + + +/*############################################################# -- Hero -- */ + +.hero-section { + background-color: #1b239b; + justify-content: space-between; } -.navlink { - padding: 10px; - margin: 10px; +.hero-section > div:nth-child(1) { } -.hero-subtext { - font-size: 24px; - font-weight: 500; -} - -.nav-cta-button { - border: 3px solid transparent; - transition: all .3s ease-out; -} - -.nav-cta-button:hover { - border: 3px solid black; +.hero-section > div:nth-child(2) { background-color: white; - color: black; - padding: 10px 25px; + padding: 25vh 40px 40px 6.2vw; + font-size: 2.5vw; + display: inline; + z-index: 100; +/* opacity: 0;*/ } -.hamburger { - display: none; - cursor: pointer; +.main-text-block { + font-size: inherit; + max-width: 80%; +} + +.main-text-block a { + color: var(--main-color); + background-image: linear-gradient(var(--main-color),var(--main-color)); + background-position: 0px 3.2vw; + background-repeat: no-repeat; transition: all .3s ease-out; } - -.hamburger-line { - width: 30px; - height: 3px; - background-color: black; +.main-text-block a:hover { + color: white; + background-position: 0px 0px; + background-image: linear-gradient(var(--dark-color),var(--dark-color)); + padding: 5px 10px; } - - - -/*................................................... Hero Section */ - -section.hero-section { - padding: 0px 40px 40px 40px; +.main-hero-text { + font-size: inherit; + font-weight: 500; + width: auto; + display: inline; } -.my-name { - color: #222; - padding: 0px; - font-size: 60px; -} - -.body-bg { - position: fixed; - z-index: -1; - width: 100%; - opacity: .5; - min-height: 100vh; - background-image: url("images/stone-wall-bg.jpg"); - background-size: cover; -} - -#wavy-line { - width: 100%; +.hero-section img { position: absolute; z-index: -1; - top: 350px; - left: 0; - opacity: .5; - display: none; } -.body-bg.gradient { - /*background-image: linear-gradient(rgba(0,0,0,0.05), rgba(0,0,0,0));*/ +#clouds { + min-width: 100%; + min-height: 100vh; + left: 0px; + top: 0px; + opacity: 0.2; } -.hero-content-container { - align-items: center; +#mountains { + width: 100%; + min-height: 100vh; + bottom: -20vh; } -.hero-ctas-block { - display: flex; - align-items: center; - justify-content: flex-start; - margin-top: 15px; +.benjamin-image-block { + width: 15vw; + height: 80vh; + position: absolute; + bottom: -10px; + background-color: var(--sec-color-2); + left: 15vw; + background-image: url("images/hero-image-ben.jpg"); + background-size: cover; + opacity: .2; + padding: 0; } -.hero-content-link { - color: rgba(0,0,0,0.4); - transition: all .3s ease-out; - border-bottom: 2px solid rgba(0,0,0,0.4); -} - -.hero-content-link:hover { - background-color: #222222; +.benjamin-big-text-block { + position: absolute; + font-size: 8.5vw; + bottom: -40px; + left: 5%; + font-weight: 900; + line-height: 1em; color: white; - padding: 5px; + mix-blend-mode: overlay; + filter: drop-shadow(0 0 20px rgba(0,0,0,0.4)); + padding: 40px; } .main-cta-button { - margin: 0; - border: 3px solid #333; - background-color: #fff; - color: #222; - font-size: 18px; - font-weight: 600; - transition: all .3s ease-out; + font-size: 24px; padding: 15px 40px; + margin-top: 20px; + background-color: var(--sec-color-1); + transition: all .3s ease-out; + background-image: linear-gradient(var(--dark-color),var(--dark-color)); } .main-cta-button:hover { - background-color: #222; - color: white; - padding: 15px 50px; + background-image: linear-gradient(var(--dark-color),var(--dark-color)); + background-position: 0px 0px; + background-repeat: no-repeat; } -.linkedin-link { - border: none; - display: flex; + + + + + + + + +/*############################################################# -- My Work -- */ + +.my-work-section { + +} + +.my-work-section > div:nth-child(1) { + color: rgba(0,0,0,0.6); + align-items: flex-end; +} + +.my-work-section > div:nth-child(2) { + background-color: var(--sec-color-2); +/* width: 20%;*/ +} + +.my-work-section h2 { + text-align: right; + color: rgba(0,0,0,.8); +} + +.my-work-section p { + text-align: right; +} + + + + + + + + + +/*############################################################# -- About Me -- */ + +.about-me-section { + justify-content: flex-end; +} + +.about-me-section > div:nth-child(1) { + background-color: var(--sec-color-3); +/* width: 20%;*/ +} + + + + +/*############################################################# -- About Me -- */ + +.my-specialties-section { justify-content: flex-start; - margin-right: 20px; -} - -.linkedin-link:hover { - border: none; -} - - - -.linkedin-block { - padding: 10px 20px 10px 10px; - background-color: #0a66c2; - display: flex; align-items: center; - border-radius: 100px; - transition: all .3s ease-out; -} - -.linkedin-block:hover { - padding: 10px 25px 10px 15px; - background-color: #0C529B; -} - -.linkedin-profile-pic-block { - width: 35px; - height: 35px; - border-radius: 100px; - margin-right: 10px; - overflow: hidden; - display: flex; - align-items: center; - justify-content: center; - border: 3px solid rgba(255,255,255,0.5); -} - -#animation-half-column { - perspective: 600px; - z-index: -1; -} - -#my-face { - width: 500px; - height: 500px; - position: relative; - z-index: 10; -} - -.face-wrapper { - width: 500px; - height: 500px; - position: relative; - animation: facehover 3s infinite; - animation-timing-function: ease; - transition: all .4s ease-out; - transform-style: preserve-3d; - /* transform: rotate3d(20,-20,0,20deg); rotateX(60deg) rotateY(60deg)*/ -} - -@keyframes facehover { - 0% {top:0;} - 50% {top:5px;} - 100% {top:0;} -} - -.centered-content { - display: flex; - align-items: center; - justify-content: center; -} - -.linkedin-cta-text { - font-size: 16px; - font-weight: 500; + flex-direction: column; + background-color: var(--dark-color); color: white; - margin: 0; + text-align: center; + padding: 100px; } -#color-overlay { - position: absolute; +.my-specialties-section h2 { + +} + +.my-specialties-section p { + color: rgba(255,255,255,0.70); + max-width: 800px; +} + +.my-specialties-section > div { + max-width: 1140px; width: 100%; - height: 100%; - background-color: transparent; - top: 0; - left: 0; - transition: all .3s ease-out; - z-index: 0; + display: flex; + flex-wrap: wrap; + flex-direction: row; + padding: 20px 0 0 0; } -.hero-image-blur { - width: 500px; - height: 500px; - background-color: #0D2659; - border-radius: 1000px; - position: absolute; - top: 0; - left: 0; - transform: translateZ(-400px); - filter: blur(50px); - z-index: -1; - opacity: .05; -} - -.paint-spatter { - position: absolute; - top: 0; - left: 0; - background-image: url("images/pain-splatter-1.png"); - background-size: cover; - width: 100%; - height: 100%; - z-index: -10; - transform: scale(1.5); - mix-blend-mode: lighten; - opacity: .1; -} - -.morphing-shapes-container { - width: 100%; - height: 100%; - position: absolute; - top: 0; - left: 0; - mix-blend-mode: multiply; - z-index: -10; - transition: all .3s ease; -} - -#morph-shape-1 { +.my-specialties-section > div > div { width: 100px; height: 100px; - position: absolute; - top: 10px; - left: 10px; -} - -#morph-shape-2 { - width: 150px; - height: 150px; - position: absolute; - bottom: 120px; - right: -60px; - z-index: -10; -} - -#morph-shape-3 { - width: 60px; - height: 60px; - position: absolute; - top: 30px; - right: 30px; - opacity: .5; - z-index: -10; -} - -#bg-circle { - width: 700px; - height: 700px; + background-color: var(--main-color); + margin: 10px; border-radius: 50%; - background-color: #ddd; - top: 50%; - left: 50%; - transform: translate3d(-50%,-55%,-300px); - z-index: -1000; - position: absolute; - transition: all .5s ease; -} - - - - - - - - - - -.scroll-down-icon { - font-size:80px; - font-weight:400; - transform:rotate(90deg); -} - -.scroll-down-link-block { - border: none; - opacity: .5; - transition: all .3s ease-out; - position: relative; - animation: scrolldownicon 2s infinite; - animation-timing-function: ease-in-out; -} - -.scroll-down-link-block:hover { - border: none; - opacity: 1; - animation-play-state: paused; -} - -@keyframes scrolldownicon { - 0% {top: 0;} - 50% {top: 20px;} - 100% {top: 0;} + transform-style: preserve-3d; } @@ -531,6 +562,7 @@ section.hero-section { +/* ################################################### Animations*/ @@ -543,31 +575,14 @@ section.hero-section { -/*.................................................................................................................. Mobile Styles */ -@media (max-width: 950px) { + + +/*##################################################################################################### -- Mobile Styles */ + +@media (max-width: 1200px) { - .hamburger { - display: flex; - flex-direction: column; - align-items: center; - justify-content: space-around; - padding: 10px; - width: 40px; - height: 40px; - background-color: #fff; - } - .hamburger:hover { - padding: 18px 10px; - } - - .hamburger-line { - } - - nav { - display: none; - } } @@ -577,49 +592,7 @@ section.hero-section { @media (max-width: 800px) { - .column-50 { - width: 100%; - } - .container-1200px { - flex-direction: column; - } - - #my-face { - - } - - .face-wrapper { - margin-top: 0; - right: -20vw; - } - - #wavy-line { - width: 300%; - top: 500px; - } - - #morph-shape-1 { - top: 40px; - left: -100px; - width: 200px; - height: 200px; - } - - #morph-shape-2 { - top: auto; - bottom: 50px; - left: 0px; - width: 100px; - height: 100px; - } - - #morph-shape-3 { - top: 250px; - left: -150px; - width: 120px; - height: 120px; - } } @@ -627,70 +600,10 @@ section.hero-section { -@media (max-width: 550px) { +@media (max-width: 600px) { - h1 { - font-size: 44px; - } - header { - padding: 20px; - } - section.hero-section { - padding: 20px; - } - - .hero-subtext { - font-size: 20px; - } - - .container-1200px.hero-content-container { - padding-right: 40vw; - } - - .hero-content-link { - background-color: #fff; - } - - .hero-ctas-block { - flex-direction: column; - align-items: flex-start; - } - - .linkedin-cta-text { - font-size: 14px; - } - - .linkedin-block { - padding: 7px 15px 7px 7px; - margin-bottom: 15px; - } - - #my-face { - margin-top: 0; - } - - .face-wrapper { - top: 0; - margin-top: -500px; - right: -60vw; - } - - #morph-shape-1 { - top: 100px; - left: 40px; - width: 70px; - height: 70px; - } - - #morph-shape-2 { - display: none; - } - - #morph-shape-3 { - display: none; - } } @@ -698,37 +611,11 @@ section.hero-section { -@media (max-width: 450px) { +@media (max-width: 430px) { - .my-name { - font-size: 48px; - } - #my-face { - margin-top: 0; - width: 400px; - height: 400px; - } - - .face-wrapper { - margin-top: -530px; - width: 400px; - height: 400px; - right: -50vw; - } - - #wavy-line { - width: 300%; - top: 450px; - } - - #morph-shape-1 { - top: 80px; - left: 40px; - width: 50px; - height: 50px; - } + } @@ -738,23 +625,7 @@ section.hero-section { @media (max-width: 350px) { - .my-name { - font-size: 40px; - } - .face-wrapper { - margin-top: -550px; - width: 400px; - height: 400px; - right: -50vw; - } - - #morph-shape-1 { - top: 20px; - left: 60px; - width: 50px; - height: 50px; - } } diff --git a/scripts/anime.js b/scripts/anime.js deleted file mode 100644 index a99421a..0000000 --- a/scripts/anime.js +++ /dev/null @@ -1,1312 +0,0 @@ -/* - * anime.js v3.2.1 - * (c) 2020 Julian Garnier - * Released under the MIT license - * animejs.com - */ - -'use strict'; - -// Defaults - -var defaultInstanceSettings = { - update: null, - begin: null, - loopBegin: null, - changeBegin: null, - change: null, - changeComplete: null, - loopComplete: null, - complete: null, - loop: 1, - direction: 'normal', - autoplay: true, - timelineOffset: 0 -}; - -var defaultTweenSettings = { - duration: 1000, - delay: 0, - endDelay: 0, - easing: 'easeOutElastic(1, .5)', - round: 0 -}; - -var validTransforms = ['translateX', 'translateY', 'translateZ', 'rotate', 'rotateX', 'rotateY', 'rotateZ', 'scale', 'scaleX', 'scaleY', 'scaleZ', 'skew', 'skewX', 'skewY', 'perspective', 'matrix', 'matrix3d']; - -// Caching - -var cache = { - CSS: {}, - springs: {} -}; - -// Utils - -function minMax(val, min, max) { - return Math.min(Math.max(val, min), max); -} - -function stringContains(str, text) { - return str.indexOf(text) > -1; -} - -function applyArguments(func, args) { - return func.apply(null, args); -} - -var is = { - arr: function (a) { return Array.isArray(a); }, - obj: function (a) { return stringContains(Object.prototype.toString.call(a), 'Object'); }, - pth: function (a) { return is.obj(a) && a.hasOwnProperty('totalLength'); }, - svg: function (a) { return a instanceof SVGElement; }, - inp: function (a) { return a instanceof HTMLInputElement; }, - dom: function (a) { return a.nodeType || is.svg(a); }, - str: function (a) { return typeof a === 'string'; }, - fnc: function (a) { return typeof a === 'function'; }, - und: function (a) { return typeof a === 'undefined'; }, - nil: function (a) { return is.und(a) || a === null; }, - hex: function (a) { return /(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(a); }, - rgb: function (a) { return /^rgb/.test(a); }, - hsl: function (a) { return /^hsl/.test(a); }, - col: function (a) { return (is.hex(a) || is.rgb(a) || is.hsl(a)); }, - key: function (a) { return !defaultInstanceSettings.hasOwnProperty(a) && !defaultTweenSettings.hasOwnProperty(a) && a !== 'targets' && a !== 'keyframes'; }, -}; - -// Easings - -function parseEasingParameters(string) { - var match = /\(([^)]+)\)/.exec(string); - return match ? match[1].split(',').map(function (p) { return parseFloat(p); }) : []; -} - -// Spring solver inspired by Webkit Copyright © 2016 Apple Inc. All rights reserved. https://webkit.org/demos/spring/spring.js - -function spring(string, duration) { - - var params = parseEasingParameters(string); - var mass = minMax(is.und(params[0]) ? 1 : params[0], .1, 100); - var stiffness = minMax(is.und(params[1]) ? 100 : params[1], .1, 100); - var damping = minMax(is.und(params[2]) ? 10 : params[2], .1, 100); - var velocity = minMax(is.und(params[3]) ? 0 : params[3], .1, 100); - var w0 = Math.sqrt(stiffness / mass); - var zeta = damping / (2 * Math.sqrt(stiffness * mass)); - var wd = zeta < 1 ? w0 * Math.sqrt(1 - zeta * zeta) : 0; - var a = 1; - var b = zeta < 1 ? (zeta * w0 + -velocity) / wd : -velocity + w0; - - function solver(t) { - var progress = duration ? (duration * t) / 1000 : t; - if (zeta < 1) { - progress = Math.exp(-progress * zeta * w0) * (a * Math.cos(wd * progress) + b * Math.sin(wd * progress)); - } else { - progress = (a + b * progress) * Math.exp(-progress * w0); - } - if (t === 0 || t === 1) { return t; } - return 1 - progress; - } - - function getDuration() { - var cached = cache.springs[string]; - if (cached) { return cached; } - var frame = 1/6; - var elapsed = 0; - var rest = 0; - while(true) { - elapsed += frame; - if (solver(elapsed) === 1) { - rest++; - if (rest >= 16) { break; } - } else { - rest = 0; - } - } - var duration = elapsed * frame * 1000; - cache.springs[string] = duration; - return duration; - } - - return duration ? solver : getDuration; - -} - -// Basic steps easing implementation https://developer.mozilla.org/fr/docs/Web/CSS/transition-timing-function - -function steps(steps) { - if ( steps === void 0 ) steps = 10; - - return function (t) { return Math.ceil((minMax(t, 0.000001, 1)) * steps) * (1 / steps); }; -} - -// BezierEasing https://github.com/gre/bezier-easing - -var bezier = (function () { - - var kSplineTableSize = 11; - var kSampleStepSize = 1.0 / (kSplineTableSize - 1.0); - - function A(aA1, aA2) { return 1.0 - 3.0 * aA2 + 3.0 * aA1 } - function B(aA1, aA2) { return 3.0 * aA2 - 6.0 * aA1 } - function C(aA1) { return 3.0 * aA1 } - - function calcBezier(aT, aA1, aA2) { return ((A(aA1, aA2) * aT + B(aA1, aA2)) * aT + C(aA1)) * aT } - function getSlope(aT, aA1, aA2) { return 3.0 * A(aA1, aA2) * aT * aT + 2.0 * B(aA1, aA2) * aT + C(aA1) } - - function binarySubdivide(aX, aA, aB, mX1, mX2) { - var currentX, currentT, i = 0; - do { - currentT = aA + (aB - aA) / 2.0; - currentX = calcBezier(currentT, mX1, mX2) - aX; - if (currentX > 0.0) { aB = currentT; } else { aA = currentT; } - } while (Math.abs(currentX) > 0.0000001 && ++i < 10); - return currentT; - } - - function newtonRaphsonIterate(aX, aGuessT, mX1, mX2) { - for (var i = 0; i < 4; ++i) { - var currentSlope = getSlope(aGuessT, mX1, mX2); - if (currentSlope === 0.0) { return aGuessT; } - var currentX = calcBezier(aGuessT, mX1, mX2) - aX; - aGuessT -= currentX / currentSlope; - } - return aGuessT; - } - - function bezier(mX1, mY1, mX2, mY2) { - - if (!(0 <= mX1 && mX1 <= 1 && 0 <= mX2 && mX2 <= 1)) { return; } - var sampleValues = new Float32Array(kSplineTableSize); - - if (mX1 !== mY1 || mX2 !== mY2) { - for (var i = 0; i < kSplineTableSize; ++i) { - sampleValues[i] = calcBezier(i * kSampleStepSize, mX1, mX2); - } - } - - function getTForX(aX) { - - var intervalStart = 0; - var currentSample = 1; - var lastSample = kSplineTableSize - 1; - - for (; currentSample !== lastSample && sampleValues[currentSample] <= aX; ++currentSample) { - intervalStart += kSampleStepSize; - } - - --currentSample; - - var dist = (aX - sampleValues[currentSample]) / (sampleValues[currentSample + 1] - sampleValues[currentSample]); - var guessForT = intervalStart + dist * kSampleStepSize; - var initialSlope = getSlope(guessForT, mX1, mX2); - - if (initialSlope >= 0.001) { - return newtonRaphsonIterate(aX, guessForT, mX1, mX2); - } else if (initialSlope === 0.0) { - return guessForT; - } else { - return binarySubdivide(aX, intervalStart, intervalStart + kSampleStepSize, mX1, mX2); - } - - } - - return function (x) { - if (mX1 === mY1 && mX2 === mY2) { return x; } - if (x === 0 || x === 1) { return x; } - return calcBezier(getTForX(x), mY1, mY2); - } - - } - - return bezier; - -})(); - -var penner = (function () { - - // Based on jQuery UI's implemenation of easing equations from Robert Penner (http://www.robertpenner.com/easing) - - var eases = { linear: function () { return function (t) { return t; }; } }; - - var functionEasings = { - Sine: function () { return function (t) { return 1 - Math.cos(t * Math.PI / 2); }; }, - Circ: function () { return function (t) { return 1 - Math.sqrt(1 - t * t); }; }, - Back: function () { return function (t) { return t * t * (3 * t - 2); }; }, - Bounce: function () { return function (t) { - var pow2, b = 4; - while (t < (( pow2 = Math.pow(2, --b)) - 1) / 11) {} - return 1 / Math.pow(4, 3 - b) - 7.5625 * Math.pow(( pow2 * 3 - 2 ) / 22 - t, 2) - }; }, - Elastic: function (amplitude, period) { - if ( amplitude === void 0 ) amplitude = 1; - if ( period === void 0 ) period = .5; - - var a = minMax(amplitude, 1, 10); - var p = minMax(period, .1, 2); - return function (t) { - return (t === 0 || t === 1) ? t : - -a * Math.pow(2, 10 * (t - 1)) * Math.sin((((t - 1) - (p / (Math.PI * 2) * Math.asin(1 / a))) * (Math.PI * 2)) / p); - } - } - }; - - var baseEasings = ['Quad', 'Cubic', 'Quart', 'Quint', 'Expo']; - - baseEasings.forEach(function (name, i) { - functionEasings[name] = function () { return function (t) { return Math.pow(t, i + 2); }; }; - }); - - Object.keys(functionEasings).forEach(function (name) { - var easeIn = functionEasings[name]; - eases['easeIn' + name] = easeIn; - eases['easeOut' + name] = function (a, b) { return function (t) { return 1 - easeIn(a, b)(1 - t); }; }; - eases['easeInOut' + name] = function (a, b) { return function (t) { return t < 0.5 ? easeIn(a, b)(t * 2) / 2 : - 1 - easeIn(a, b)(t * -2 + 2) / 2; }; }; - eases['easeOutIn' + name] = function (a, b) { return function (t) { return t < 0.5 ? (1 - easeIn(a, b)(1 - t * 2)) / 2 : - (easeIn(a, b)(t * 2 - 1) + 1) / 2; }; }; - }); - - return eases; - -})(); - -function parseEasings(easing, duration) { - if (is.fnc(easing)) { return easing; } - var name = easing.split('(')[0]; - var ease = penner[name]; - var args = parseEasingParameters(easing); - switch (name) { - case 'spring' : return spring(easing, duration); - case 'cubicBezier' : return applyArguments(bezier, args); - case 'steps' : return applyArguments(steps, args); - default : return applyArguments(ease, args); - } -} - -// Strings - -function selectString(str) { - try { - var nodes = document.querySelectorAll(str); - return nodes; - } catch(e) { - return; - } -} - -// Arrays - -function filterArray(arr, callback) { - var len = arr.length; - var thisArg = arguments.length >= 2 ? arguments[1] : void 0; - var result = []; - for (var i = 0; i < len; i++) { - if (i in arr) { - var val = arr[i]; - if (callback.call(thisArg, val, i, arr)) { - result.push(val); - } - } - } - return result; -} - -function flattenArray(arr) { - return arr.reduce(function (a, b) { return a.concat(is.arr(b) ? flattenArray(b) : b); }, []); -} - -function toArray(o) { - if (is.arr(o)) { return o; } - if (is.str(o)) { o = selectString(o) || o; } - if (o instanceof NodeList || o instanceof HTMLCollection) { return [].slice.call(o); } - return [o]; -} - -function arrayContains(arr, val) { - return arr.some(function (a) { return a === val; }); -} - -// Objects - -function cloneObject(o) { - var clone = {}; - for (var p in o) { clone[p] = o[p]; } - return clone; -} - -function replaceObjectProps(o1, o2) { - var o = cloneObject(o1); - for (var p in o1) { o[p] = o2.hasOwnProperty(p) ? o2[p] : o1[p]; } - return o; -} - -function mergeObjects(o1, o2) { - var o = cloneObject(o1); - for (var p in o2) { o[p] = is.und(o1[p]) ? o2[p] : o1[p]; } - return o; -} - -// Colors - -function rgbToRgba(rgbValue) { - var rgb = /rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(rgbValue); - return rgb ? ("rgba(" + (rgb[1]) + ",1)") : rgbValue; -} - -function hexToRgba(hexValue) { - var rgx = /^#?([a-f\d])([a-f\d])([a-f\d])$/i; - var hex = hexValue.replace(rgx, function (m, r, g, b) { return r + r + g + g + b + b; } ); - var rgb = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex); - var r = parseInt(rgb[1], 16); - var g = parseInt(rgb[2], 16); - var b = parseInt(rgb[3], 16); - return ("rgba(" + r + "," + g + "," + b + ",1)"); -} - -function hslToRgba(hslValue) { - var hsl = /hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(hslValue) || /hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(hslValue); - var h = parseInt(hsl[1], 10) / 360; - var s = parseInt(hsl[2], 10) / 100; - var l = parseInt(hsl[3], 10) / 100; - var a = hsl[4] || 1; - function hue2rgb(p, q, t) { - if (t < 0) { t += 1; } - if (t > 1) { t -= 1; } - if (t < 1/6) { return p + (q - p) * 6 * t; } - if (t < 1/2) { return q; } - if (t < 2/3) { return p + (q - p) * (2/3 - t) * 6; } - return p; - } - var r, g, b; - if (s == 0) { - r = g = b = l; - } else { - var q = l < 0.5 ? l * (1 + s) : l + s - l * s; - var p = 2 * l - q; - r = hue2rgb(p, q, h + 1/3); - g = hue2rgb(p, q, h); - b = hue2rgb(p, q, h - 1/3); - } - return ("rgba(" + (r * 255) + "," + (g * 255) + "," + (b * 255) + "," + a + ")"); -} - -function colorToRgb(val) { - if (is.rgb(val)) { return rgbToRgba(val); } - if (is.hex(val)) { return hexToRgba(val); } - if (is.hsl(val)) { return hslToRgba(val); } -} - -// Units - -function getUnit(val) { - var split = /[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(val); - if (split) { return split[1]; } -} - -function getTransformUnit(propName) { - if (stringContains(propName, 'translate') || propName === 'perspective') { return 'px'; } - if (stringContains(propName, 'rotate') || stringContains(propName, 'skew')) { return 'deg'; } -} - -// Values - -function getFunctionValue(val, animatable) { - if (!is.fnc(val)) { return val; } - return val(animatable.target, animatable.id, animatable.total); -} - -function getAttribute(el, prop) { - return el.getAttribute(prop); -} - -function convertPxToUnit(el, value, unit) { - var valueUnit = getUnit(value); - if (arrayContains([unit, 'deg', 'rad', 'turn'], valueUnit)) { return value; } - var cached = cache.CSS[value + unit]; - if (!is.und(cached)) { return cached; } - var baseline = 100; - var tempEl = document.createElement(el.tagName); - var parentEl = (el.parentNode && (el.parentNode !== document)) ? el.parentNode : document.body; - parentEl.appendChild(tempEl); - tempEl.style.position = 'absolute'; - tempEl.style.width = baseline + unit; - var factor = baseline / tempEl.offsetWidth; - parentEl.removeChild(tempEl); - var convertedUnit = factor * parseFloat(value); - cache.CSS[value + unit] = convertedUnit; - return convertedUnit; -} - -function getCSSValue(el, prop, unit) { - if (prop in el.style) { - var uppercasePropName = prop.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase(); - var value = el.style[prop] || getComputedStyle(el).getPropertyValue(uppercasePropName) || '0'; - return unit ? convertPxToUnit(el, value, unit) : value; - } -} - -function getAnimationType(el, prop) { - if (is.dom(el) && !is.inp(el) && (!is.nil(getAttribute(el, prop)) || (is.svg(el) && el[prop]))) { return 'attribute'; } - if (is.dom(el) && arrayContains(validTransforms, prop)) { return 'transform'; } - if (is.dom(el) && (prop !== 'transform' && getCSSValue(el, prop))) { return 'css'; } - if (el[prop] != null) { return 'object'; } -} - -function getElementTransforms(el) { - if (!is.dom(el)) { return; } - var str = el.style.transform || ''; - var reg = /(\w+)\(([^)]*)\)/g; - var transforms = new Map(); - var m; while (m = reg.exec(str)) { transforms.set(m[1], m[2]); } - return transforms; -} - -function getTransformValue(el, propName, animatable, unit) { - var defaultVal = stringContains(propName, 'scale') ? 1 : 0 + getTransformUnit(propName); - var value = getElementTransforms(el).get(propName) || defaultVal; - if (animatable) { - animatable.transforms.list.set(propName, value); - animatable.transforms['last'] = propName; - } - return unit ? convertPxToUnit(el, value, unit) : value; -} - -function getOriginalTargetValue(target, propName, unit, animatable) { - switch (getAnimationType(target, propName)) { - case 'transform': return getTransformValue(target, propName, animatable, unit); - case 'css': return getCSSValue(target, propName, unit); - case 'attribute': return getAttribute(target, propName); - default: return target[propName] || 0; - } -} - -function getRelativeValue(to, from) { - var operator = /^(\*=|\+=|-=)/.exec(to); - if (!operator) { return to; } - var u = getUnit(to) || 0; - var x = parseFloat(from); - var y = parseFloat(to.replace(operator[0], '')); - switch (operator[0][0]) { - case '+': return x + y + u; - case '-': return x - y + u; - case '*': return x * y + u; - } -} - -function validateValue(val, unit) { - if (is.col(val)) { return colorToRgb(val); } - if (/\s/g.test(val)) { return val; } - var originalUnit = getUnit(val); - var unitLess = originalUnit ? val.substr(0, val.length - originalUnit.length) : val; - if (unit) { return unitLess + unit; } - return unitLess; -} - -// getTotalLength() equivalent for circle, rect, polyline, polygon and line shapes -// adapted from https://gist.github.com/SebLambla/3e0550c496c236709744 - -function getDistance(p1, p2) { - return Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2)); -} - -function getCircleLength(el) { - return Math.PI * 2 * getAttribute(el, 'r'); -} - -function getRectLength(el) { - return (getAttribute(el, 'width') * 2) + (getAttribute(el, 'height') * 2); -} - -function getLineLength(el) { - return getDistance( - {x: getAttribute(el, 'x1'), y: getAttribute(el, 'y1')}, - {x: getAttribute(el, 'x2'), y: getAttribute(el, 'y2')} - ); -} - -function getPolylineLength(el) { - var points = el.points; - var totalLength = 0; - var previousPos; - for (var i = 0 ; i < points.numberOfItems; i++) { - var currentPos = points.getItem(i); - if (i > 0) { totalLength += getDistance(previousPos, currentPos); } - previousPos = currentPos; - } - return totalLength; -} - -function getPolygonLength(el) { - var points = el.points; - return getPolylineLength(el) + getDistance(points.getItem(points.numberOfItems - 1), points.getItem(0)); -} - -// Path animation - -function getTotalLength(el) { - if (el.getTotalLength) { return el.getTotalLength(); } - switch(el.tagName.toLowerCase()) { - case 'circle': return getCircleLength(el); - case 'rect': return getRectLength(el); - case 'line': return getLineLength(el); - case 'polyline': return getPolylineLength(el); - case 'polygon': return getPolygonLength(el); - } -} - -function setDashoffset(el) { - var pathLength = getTotalLength(el); - el.setAttribute('stroke-dasharray', pathLength); - return pathLength; -} - -// Motion path - -function getParentSvgEl(el) { - var parentEl = el.parentNode; - while (is.svg(parentEl)) { - if (!is.svg(parentEl.parentNode)) { break; } - parentEl = parentEl.parentNode; - } - return parentEl; -} - -function getParentSvg(pathEl, svgData) { - var svg = svgData || {}; - var parentSvgEl = svg.el || getParentSvgEl(pathEl); - var rect = parentSvgEl.getBoundingClientRect(); - var viewBoxAttr = getAttribute(parentSvgEl, 'viewBox'); - var width = rect.width; - var height = rect.height; - var viewBox = svg.viewBox || (viewBoxAttr ? viewBoxAttr.split(' ') : [0, 0, width, height]); - return { - el: parentSvgEl, - viewBox: viewBox, - x: viewBox[0] / 1, - y: viewBox[1] / 1, - w: width, - h: height, - vW: viewBox[2], - vH: viewBox[3] - } -} - -function getPath(path, percent) { - var pathEl = is.str(path) ? selectString(path)[0] : path; - var p = percent || 100; - return function(property) { - return { - property: property, - el: pathEl, - svg: getParentSvg(pathEl), - totalLength: getTotalLength(pathEl) * (p / 100) - } - } -} - -function getPathProgress(path, progress, isPathTargetInsideSVG) { - function point(offset) { - if ( offset === void 0 ) offset = 0; - - var l = progress + offset >= 1 ? progress + offset : 0; - return path.el.getPointAtLength(l); - } - var svg = getParentSvg(path.el, path.svg); - var p = point(); - var p0 = point(-1); - var p1 = point(+1); - var scaleX = isPathTargetInsideSVG ? 1 : svg.w / svg.vW; - var scaleY = isPathTargetInsideSVG ? 1 : svg.h / svg.vH; - switch (path.property) { - case 'x': return (p.x - svg.x) * scaleX; - case 'y': return (p.y - svg.y) * scaleY; - case 'angle': return Math.atan2(p1.y - p0.y, p1.x - p0.x) * 180 / Math.PI; - } -} - -// Decompose value - -function decomposeValue(val, unit) { - // const rgx = /-?\d*\.?\d+/g; // handles basic numbers - // const rgx = /[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g; // handles exponents notation - var rgx = /[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g; // handles exponents notation - var value = validateValue((is.pth(val) ? val.totalLength : val), unit) + ''; - return { - original: value, - numbers: value.match(rgx) ? value.match(rgx).map(Number) : [0], - strings: (is.str(val) || unit) ? value.split(rgx) : [] - } -} - -// Animatables - -function parseTargets(targets) { - var targetsArray = targets ? (flattenArray(is.arr(targets) ? targets.map(toArray) : toArray(targets))) : []; - return filterArray(targetsArray, function (item, pos, self) { return self.indexOf(item) === pos; }); -} - -function getAnimatables(targets) { - var parsed = parseTargets(targets); - return parsed.map(function (t, i) { - return {target: t, id: i, total: parsed.length, transforms: { list: getElementTransforms(t) } }; - }); -} - -// Properties - -function normalizePropertyTweens(prop, tweenSettings) { - var settings = cloneObject(tweenSettings); - // Override duration if easing is a spring - if (/^spring/.test(settings.easing)) { settings.duration = spring(settings.easing); } - if (is.arr(prop)) { - var l = prop.length; - var isFromTo = (l === 2 && !is.obj(prop[0])); - if (!isFromTo) { - // Duration divided by the number of tweens - if (!is.fnc(tweenSettings.duration)) { settings.duration = tweenSettings.duration / l; } - } else { - // Transform [from, to] values shorthand to a valid tween value - prop = {value: prop}; - } - } - var propArray = is.arr(prop) ? prop : [prop]; - return propArray.map(function (v, i) { - var obj = (is.obj(v) && !is.pth(v)) ? v : {value: v}; - // Default delay value should only be applied to the first tween - if (is.und(obj.delay)) { obj.delay = !i ? tweenSettings.delay : 0; } - // Default endDelay value should only be applied to the last tween - if (is.und(obj.endDelay)) { obj.endDelay = i === propArray.length - 1 ? tweenSettings.endDelay : 0; } - return obj; - }).map(function (k) { return mergeObjects(k, settings); }); -} - - -function flattenKeyframes(keyframes) { - var propertyNames = filterArray(flattenArray(keyframes.map(function (key) { return Object.keys(key); })), function (p) { return is.key(p); }) - .reduce(function (a,b) { if (a.indexOf(b) < 0) { a.push(b); } return a; }, []); - var properties = {}; - var loop = function ( i ) { - var propName = propertyNames[i]; - properties[propName] = keyframes.map(function (key) { - var newKey = {}; - for (var p in key) { - if (is.key(p)) { - if (p == propName) { newKey.value = key[p]; } - } else { - newKey[p] = key[p]; - } - } - return newKey; - }); - }; - - for (var i = 0; i < propertyNames.length; i++) loop( i ); - return properties; -} - -function getProperties(tweenSettings, params) { - var properties = []; - var keyframes = params.keyframes; - if (keyframes) { params = mergeObjects(flattenKeyframes(keyframes), params); } - for (var p in params) { - if (is.key(p)) { - properties.push({ - name: p, - tweens: normalizePropertyTweens(params[p], tweenSettings) - }); - } - } - return properties; -} - -// Tweens - -function normalizeTweenValues(tween, animatable) { - var t = {}; - for (var p in tween) { - var value = getFunctionValue(tween[p], animatable); - if (is.arr(value)) { - value = value.map(function (v) { return getFunctionValue(v, animatable); }); - if (value.length === 1) { value = value[0]; } - } - t[p] = value; - } - t.duration = parseFloat(t.duration); - t.delay = parseFloat(t.delay); - return t; -} - -function normalizeTweens(prop, animatable) { - var previousTween; - return prop.tweens.map(function (t) { - var tween = normalizeTweenValues(t, animatable); - var tweenValue = tween.value; - var to = is.arr(tweenValue) ? tweenValue[1] : tweenValue; - var toUnit = getUnit(to); - var originalValue = getOriginalTargetValue(animatable.target, prop.name, toUnit, animatable); - var previousValue = previousTween ? previousTween.to.original : originalValue; - var from = is.arr(tweenValue) ? tweenValue[0] : previousValue; - var fromUnit = getUnit(from) || getUnit(originalValue); - var unit = toUnit || fromUnit; - if (is.und(to)) { to = previousValue; } - tween.from = decomposeValue(from, unit); - tween.to = decomposeValue(getRelativeValue(to, from), unit); - tween.start = previousTween ? previousTween.end : 0; - tween.end = tween.start + tween.delay + tween.duration + tween.endDelay; - tween.easing = parseEasings(tween.easing, tween.duration); - tween.isPath = is.pth(tweenValue); - tween.isPathTargetInsideSVG = tween.isPath && is.svg(animatable.target); - tween.isColor = is.col(tween.from.original); - if (tween.isColor) { tween.round = 1; } - previousTween = tween; - return tween; - }); -} - -// Tween progress - -var setProgressValue = { - css: function (t, p, v) { return t.style[p] = v; }, - attribute: function (t, p, v) { return t.setAttribute(p, v); }, - object: function (t, p, v) { return t[p] = v; }, - transform: function (t, p, v, transforms, manual) { - transforms.list.set(p, v); - if (p === transforms.last || manual) { - var str = ''; - transforms.list.forEach(function (value, prop) { str += prop + "(" + value + ") "; }); - t.style.transform = str; - } - } -}; - -// Set Value helper - -function setTargetsValue(targets, properties) { - var animatables = getAnimatables(targets); - animatables.forEach(function (animatable) { - for (var property in properties) { - var value = getFunctionValue(properties[property], animatable); - var target = animatable.target; - var valueUnit = getUnit(value); - var originalValue = getOriginalTargetValue(target, property, valueUnit, animatable); - var unit = valueUnit || getUnit(originalValue); - var to = getRelativeValue(validateValue(value, unit), originalValue); - var animType = getAnimationType(target, property); - setProgressValue[animType](target, property, to, animatable.transforms, true); - } - }); -} - -// Animations - -function createAnimation(animatable, prop) { - var animType = getAnimationType(animatable.target, prop.name); - if (animType) { - var tweens = normalizeTweens(prop, animatable); - var lastTween = tweens[tweens.length - 1]; - return { - type: animType, - property: prop.name, - animatable: animatable, - tweens: tweens, - duration: lastTween.end, - delay: tweens[0].delay, - endDelay: lastTween.endDelay - } - } -} - -function getAnimations(animatables, properties) { - return filterArray(flattenArray(animatables.map(function (animatable) { - return properties.map(function (prop) { - return createAnimation(animatable, prop); - }); - })), function (a) { return !is.und(a); }); -} - -// Create Instance - -function getInstanceTimings(animations, tweenSettings) { - var animLength = animations.length; - var getTlOffset = function (anim) { return anim.timelineOffset ? anim.timelineOffset : 0; }; - var timings = {}; - timings.duration = animLength ? Math.max.apply(Math, animations.map(function (anim) { return getTlOffset(anim) + anim.duration; })) : tweenSettings.duration; - timings.delay = animLength ? Math.min.apply(Math, animations.map(function (anim) { return getTlOffset(anim) + anim.delay; })) : tweenSettings.delay; - timings.endDelay = animLength ? timings.duration - Math.max.apply(Math, animations.map(function (anim) { return getTlOffset(anim) + anim.duration - anim.endDelay; })) : tweenSettings.endDelay; - return timings; -} - -var instanceID = 0; - -function createNewInstance(params) { - var instanceSettings = replaceObjectProps(defaultInstanceSettings, params); - var tweenSettings = replaceObjectProps(defaultTweenSettings, params); - var properties = getProperties(tweenSettings, params); - var animatables = getAnimatables(params.targets); - var animations = getAnimations(animatables, properties); - var timings = getInstanceTimings(animations, tweenSettings); - var id = instanceID; - instanceID++; - return mergeObjects(instanceSettings, { - id: id, - children: [], - animatables: animatables, - animations: animations, - duration: timings.duration, - delay: timings.delay, - endDelay: timings.endDelay - }); -} - -// Core - -var activeInstances = []; - -var engine = (function () { - var raf; - - function play() { - if (!raf && (!isDocumentHidden() || !anime.suspendWhenDocumentHidden) && activeInstances.length > 0) { - raf = requestAnimationFrame(step); - } - } - function step(t) { - // memo on algorithm issue: - // dangerous iteration over mutable `activeInstances` - // (that collection may be updated from within callbacks of `tick`-ed animation instances) - var activeInstancesLength = activeInstances.length; - var i = 0; - while (i < activeInstancesLength) { - var activeInstance = activeInstances[i]; - if (!activeInstance.paused) { - activeInstance.tick(t); - i++; - } else { - activeInstances.splice(i, 1); - activeInstancesLength--; - } - } - raf = i > 0 ? requestAnimationFrame(step) : undefined; - } - - function handleVisibilityChange() { - if (!anime.suspendWhenDocumentHidden) { return; } - - if (isDocumentHidden()) { - // suspend ticks - raf = cancelAnimationFrame(raf); - } else { // is back to active tab - // first adjust animations to consider the time that ticks were suspended - activeInstances.forEach( - function (instance) { return instance ._onDocumentVisibility(); } - ); - engine(); - } - } - if (typeof document !== 'undefined') { - document.addEventListener('visibilitychange', handleVisibilityChange); - } - - return play; -})(); - -function isDocumentHidden() { - return !!document && document.hidden; -} - -// Public Instance - -function anime(params) { - if ( params === void 0 ) params = {}; - - - var startTime = 0, lastTime = 0, now = 0; - var children, childrenLength = 0; - var resolve = null; - - function makePromise(instance) { - var promise = window.Promise && new Promise(function (_resolve) { return resolve = _resolve; }); - instance.finished = promise; - return promise; - } - - var instance = createNewInstance(params); - var promise = makePromise(instance); - - function toggleInstanceDirection() { - var direction = instance.direction; - if (direction !== 'alternate') { - instance.direction = direction !== 'normal' ? 'normal' : 'reverse'; - } - instance.reversed = !instance.reversed; - children.forEach(function (child) { return child.reversed = instance.reversed; }); - } - - function adjustTime(time) { - return instance.reversed ? instance.duration - time : time; - } - - function resetTime() { - startTime = 0; - lastTime = adjustTime(instance.currentTime) * (1 / anime.speed); - } - - function seekChild(time, child) { - if (child) { child.seek(time - child.timelineOffset); } - } - - function syncInstanceChildren(time) { - if (!instance.reversePlayback) { - for (var i = 0; i < childrenLength; i++) { seekChild(time, children[i]); } - } else { - for (var i$1 = childrenLength; i$1--;) { seekChild(time, children[i$1]); } - } - } - - function setAnimationsProgress(insTime) { - var i = 0; - var animations = instance.animations; - var animationsLength = animations.length; - while (i < animationsLength) { - var anim = animations[i]; - var animatable = anim.animatable; - var tweens = anim.tweens; - var tweenLength = tweens.length - 1; - var tween = tweens[tweenLength]; - // Only check for keyframes if there is more than one tween - if (tweenLength) { tween = filterArray(tweens, function (t) { return (insTime < t.end); })[0] || tween; } - var elapsed = minMax(insTime - tween.start - tween.delay, 0, tween.duration) / tween.duration; - var eased = isNaN(elapsed) ? 1 : tween.easing(elapsed); - var strings = tween.to.strings; - var round = tween.round; - var numbers = []; - var toNumbersLength = tween.to.numbers.length; - var progress = (void 0); - for (var n = 0; n < toNumbersLength; n++) { - var value = (void 0); - var toNumber = tween.to.numbers[n]; - var fromNumber = tween.from.numbers[n] || 0; - if (!tween.isPath) { - value = fromNumber + (eased * (toNumber - fromNumber)); - } else { - value = getPathProgress(tween.value, eased * toNumber, tween.isPathTargetInsideSVG); - } - if (round) { - if (!(tween.isColor && n > 2)) { - value = Math.round(value * round) / round; - } - } - numbers.push(value); - } - // Manual Array.reduce for better performances - var stringsLength = strings.length; - if (!stringsLength) { - progress = numbers[0]; - } else { - progress = strings[0]; - for (var s = 0; s < stringsLength; s++) { - var a = strings[s]; - var b = strings[s + 1]; - var n$1 = numbers[s]; - if (!isNaN(n$1)) { - if (!b) { - progress += n$1 + ' '; - } else { - progress += n$1 + b; - } - } - } - } - setProgressValue[anim.type](animatable.target, anim.property, progress, animatable.transforms); - anim.currentValue = progress; - i++; - } - } - - function setCallback(cb) { - if (instance[cb] && !instance.passThrough) { instance[cb](instance); } - } - - function countIteration() { - if (instance.remaining && instance.remaining !== true) { - instance.remaining--; - } - } - - function setInstanceProgress(engineTime) { - var insDuration = instance.duration; - var insDelay = instance.delay; - var insEndDelay = insDuration - instance.endDelay; - var insTime = adjustTime(engineTime); - instance.progress = minMax((insTime / insDuration) * 100, 0, 100); - instance.reversePlayback = insTime < instance.currentTime; - if (children) { syncInstanceChildren(insTime); } - if (!instance.began && instance.currentTime > 0) { - instance.began = true; - setCallback('begin'); - } - if (!instance.loopBegan && instance.currentTime > 0) { - instance.loopBegan = true; - setCallback('loopBegin'); - } - if (insTime <= insDelay && instance.currentTime !== 0) { - setAnimationsProgress(0); - } - if ((insTime >= insEndDelay && instance.currentTime !== insDuration) || !insDuration) { - setAnimationsProgress(insDuration); - } - if (insTime > insDelay && insTime < insEndDelay) { - if (!instance.changeBegan) { - instance.changeBegan = true; - instance.changeCompleted = false; - setCallback('changeBegin'); - } - setCallback('change'); - setAnimationsProgress(insTime); - } else { - if (instance.changeBegan) { - instance.changeCompleted = true; - instance.changeBegan = false; - setCallback('changeComplete'); - } - } - instance.currentTime = minMax(insTime, 0, insDuration); - if (instance.began) { setCallback('update'); } - if (engineTime >= insDuration) { - lastTime = 0; - countIteration(); - if (!instance.remaining) { - instance.paused = true; - if (!instance.completed) { - instance.completed = true; - setCallback('loopComplete'); - setCallback('complete'); - if (!instance.passThrough && 'Promise' in window) { - resolve(); - promise = makePromise(instance); - } - } - } else { - startTime = now; - setCallback('loopComplete'); - instance.loopBegan = false; - if (instance.direction === 'alternate') { - toggleInstanceDirection(); - } - } - } - } - - instance.reset = function() { - var direction = instance.direction; - instance.passThrough = false; - instance.currentTime = 0; - instance.progress = 0; - instance.paused = true; - instance.began = false; - instance.loopBegan = false; - instance.changeBegan = false; - instance.completed = false; - instance.changeCompleted = false; - instance.reversePlayback = false; - instance.reversed = direction === 'reverse'; - instance.remaining = instance.loop; - children = instance.children; - childrenLength = children.length; - for (var i = childrenLength; i--;) { instance.children[i].reset(); } - if (instance.reversed && instance.loop !== true || (direction === 'alternate' && instance.loop === 1)) { instance.remaining++; } - setAnimationsProgress(instance.reversed ? instance.duration : 0); - }; - - // internal method (for engine) to adjust animation timings before restoring engine ticks (rAF) - instance._onDocumentVisibility = resetTime; - - // Set Value helper - - instance.set = function(targets, properties) { - setTargetsValue(targets, properties); - return instance; - }; - - instance.tick = function(t) { - now = t; - if (!startTime) { startTime = now; } - setInstanceProgress((now + (lastTime - startTime)) * anime.speed); - }; - - instance.seek = function(time) { - setInstanceProgress(adjustTime(time)); - }; - - instance.pause = function() { - instance.paused = true; - resetTime(); - }; - - instance.play = function() { - if (!instance.paused) { return; } - if (instance.completed) { instance.reset(); } - instance.paused = false; - activeInstances.push(instance); - resetTime(); - engine(); - }; - - instance.reverse = function() { - toggleInstanceDirection(); - instance.completed = instance.reversed ? false : true; - resetTime(); - }; - - instance.restart = function() { - instance.reset(); - instance.play(); - }; - - instance.remove = function(targets) { - var targetsArray = parseTargets(targets); - removeTargetsFromInstance(targetsArray, instance); - }; - - instance.reset(); - - if (instance.autoplay) { instance.play(); } - - return instance; - -} - -// Remove targets from animation - -function removeTargetsFromAnimations(targetsArray, animations) { - for (var a = animations.length; a--;) { - if (arrayContains(targetsArray, animations[a].animatable.target)) { - animations.splice(a, 1); - } - } -} - -function removeTargetsFromInstance(targetsArray, instance) { - var animations = instance.animations; - var children = instance.children; - removeTargetsFromAnimations(targetsArray, animations); - for (var c = children.length; c--;) { - var child = children[c]; - var childAnimations = child.animations; - removeTargetsFromAnimations(targetsArray, childAnimations); - if (!childAnimations.length && !child.children.length) { children.splice(c, 1); } - } - if (!animations.length && !children.length) { instance.pause(); } -} - -function removeTargetsFromActiveInstances(targets) { - var targetsArray = parseTargets(targets); - for (var i = activeInstances.length; i--;) { - var instance = activeInstances[i]; - removeTargetsFromInstance(targetsArray, instance); - } -} - -// Stagger helpers - -function stagger(val, params) { - if ( params === void 0 ) params = {}; - - var direction = params.direction || 'normal'; - var easing = params.easing ? parseEasings(params.easing) : null; - var grid = params.grid; - var axis = params.axis; - var fromIndex = params.from || 0; - var fromFirst = fromIndex === 'first'; - var fromCenter = fromIndex === 'center'; - var fromLast = fromIndex === 'last'; - var isRange = is.arr(val); - var val1 = isRange ? parseFloat(val[0]) : parseFloat(val); - var val2 = isRange ? parseFloat(val[1]) : 0; - var unit = getUnit(isRange ? val[1] : val) || 0; - var start = params.start || 0 + (isRange ? val1 : 0); - var values = []; - var maxValue = 0; - return function (el, i, t) { - if (fromFirst) { fromIndex = 0; } - if (fromCenter) { fromIndex = (t - 1) / 2; } - if (fromLast) { fromIndex = t - 1; } - if (!values.length) { - for (var index = 0; index < t; index++) { - if (!grid) { - values.push(Math.abs(fromIndex - index)); - } else { - var fromX = !fromCenter ? fromIndex%grid[0] : (grid[0]-1)/2; - var fromY = !fromCenter ? Math.floor(fromIndex/grid[0]) : (grid[1]-1)/2; - var toX = index%grid[0]; - var toY = Math.floor(index/grid[0]); - var distanceX = fromX - toX; - var distanceY = fromY - toY; - var value = Math.sqrt(distanceX * distanceX + distanceY * distanceY); - if (axis === 'x') { value = -distanceX; } - if (axis === 'y') { value = -distanceY; } - values.push(value); - } - maxValue = Math.max.apply(Math, values); - } - if (easing) { values = values.map(function (val) { return easing(val / maxValue) * maxValue; }); } - if (direction === 'reverse') { values = values.map(function (val) { return axis ? (val < 0) ? val * -1 : -val : Math.abs(maxValue - val); }); } - } - var spacing = isRange ? (val2 - val1) / maxValue : val1; - return start + (spacing * (Math.round(values[i] * 100) / 100)) + unit; - } -} - -// Timeline - -function timeline(params) { - if ( params === void 0 ) params = {}; - - var tl = anime(params); - tl.duration = 0; - tl.add = function(instanceParams, timelineOffset) { - var tlIndex = activeInstances.indexOf(tl); - var children = tl.children; - if (tlIndex > -1) { activeInstances.splice(tlIndex, 1); } - function passThrough(ins) { ins.passThrough = true; } - for (var i = 0; i < children.length; i++) { passThrough(children[i]); } - var insParams = mergeObjects(instanceParams, replaceObjectProps(defaultTweenSettings, params)); - insParams.targets = insParams.targets || params.targets; - var tlDuration = tl.duration; - insParams.autoplay = false; - insParams.direction = tl.direction; - insParams.timelineOffset = is.und(timelineOffset) ? tlDuration : getRelativeValue(timelineOffset, tlDuration); - passThrough(tl); - tl.seek(insParams.timelineOffset); - var ins = anime(insParams); - passThrough(ins); - children.push(ins); - var timings = getInstanceTimings(children, params); - tl.delay = timings.delay; - tl.endDelay = timings.endDelay; - tl.duration = timings.duration; - tl.seek(0); - tl.reset(); - if (tl.autoplay) { tl.play(); } - return tl; - }; - return tl; -} - -anime.version = '3.2.1'; -anime.speed = 1; -// TODO:#review: naming, documentation -anime.suspendWhenDocumentHidden = true; -anime.running = activeInstances; -anime.remove = removeTargetsFromActiveInstances; -anime.get = getOriginalTargetValue; -anime.set = setTargetsValue; -anime.convertPx = convertPxToUnit; -anime.path = getPath; -anime.setDashoffset = setDashoffset; -anime.stagger = stagger; -anime.timeline = timeline; -anime.easing = parseEasings; -anime.penner = penner; -anime.random = function (min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; }; - -module.exports = anime; diff --git a/scripts/face.json b/scripts/face.json deleted file mode 100644 index bbff8b2..0000000 --- a/scripts/face.json +++ /dev/null @@ -1 +0,0 @@ -{"v":"5.7.6","fr":30,"ip":0,"op":249,"w":500,"h":500,"nm":"Comp 1","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Shape Layer 3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[250,250,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[{"i":[[7.5,-0.75],[0,0],[-21.559,-0.406],[0,0]],"o":[[-7.5,0.75],[0,0],[19.938,0.375],[0,0]],"v":[[-108.75,-62.5],[-144.75,-55.125],[-131,-10.5],[-108.5,-11.5]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.167,"y":0},"t":27,"s":[{"i":[[7.5,-0.75],[0,0],[-21.559,-0.406],[0,0]],"o":[[-7.5,0.75],[0,0],[19.938,0.375],[0,0]],"v":[[-62.75,-68.5],[-74.75,-66.125],[-60,-50],[-48,-67.5]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0},"t":73,"s":[{"i":[[7.5,-0.75],[0,0],[-21.559,-0.406],[0,0]],"o":[[-7.5,0.75],[0,0],[19.938,0.375],[0,0]],"v":[[-62.75,-68.5],[-74.75,-66.125],[-60,-50],[-48,-67.5]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.167,"y":0.167},"t":80,"s":[{"i":[[7.5,-0.75],[0,0],[-21.559,-0.406],[0,0]],"o":[[-7.5,0.75],[0,0],[19.938,0.375],[0,0]],"v":[[-63.25,-54],[-78,-50.875],[-60,-50],[-43.75,-55]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.167,"y":0},"t":87,"s":[{"i":[[7.5,-0.75],[0,0],[-21.559,-0.406],[0,0]],"o":[[-7.5,0.75],[0,0],[19.938,0.375],[0,0]],"v":[[-62.75,-68.5],[-74.75,-66.125],[-60,-50],[-48,-67.5]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0},"t":161,"s":[{"i":[[7.5,-0.75],[0,0],[-21.559,-0.406],[0,0]],"o":[[-7.5,0.75],[0,0],[19.938,0.375],[0,0]],"v":[[-62.75,-68.5],[-74.75,-66.125],[-60,-50],[-48,-67.5]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.167,"y":0.167},"t":167,"s":[{"i":[[7.5,-0.75],[0,0],[-21.559,-0.406],[0,0]],"o":[[-7.5,0.75],[0,0],[19.938,0.375],[0,0]],"v":[[-63.25,-54],[-78,-50.875],[-60,-50],[-43.75,-55]],"c":true}]},{"i":{"x":0.833,"y":1},"o":{"x":0.167,"y":0},"t":181,"s":[{"i":[[7.5,-0.75],[0,0],[-21.559,-0.406],[0,0]],"o":[[-7.5,0.75],[0,0],[19.938,0.375],[0,0]],"v":[[-62.75,-68.5],[-74.75,-66.125],[-60,-50],[-48,-67.5]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.211,"y":0},"t":212,"s":[{"i":[[7.5,-0.75],[0,0],[-21.559,-0.406],[0,0]],"o":[[-7.5,0.75],[0,0],[19.938,0.375],[0,0]],"v":[[-62.75,-68.5],[-74.75,-66.125],[-60,-50],[-48,-67.5]],"c":true}]},{"t":236,"s":[{"i":[[7.5,-0.75],[0,0],[-21.559,-0.406],[0,0]],"o":[[-7.5,0.75],[0,0],[19.938,0.375],[0,0]],"v":[[-108.75,-62.5],[-144.75,-55.125],[-131,-10.5],[-108.5,-11.5]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,0.291673937031,0.189019565956,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[0,0,0,1]},{"i":{"x":[0],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":27,"s":[0.201568483839,0.201568483839,0.201568483839,1]},{"i":{"x":[0],"y":[1]},"o":{"x":[0.211],"y":[0]},"t":212,"s":[0.201568483839,0.201568483839,0.201568483839,1]},{"t":236,"s":[0,0,0,1]}],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[120.5,-5.5],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 2","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[{"i":[[7.5,-0.75],[0,0],[-21.559,-0.406],[0,0]],"o":[[-7.5,0.75],[0,0],[19.938,0.375],[0,0]],"v":[[8.75,-66.5],[-20.75,-62.125],[-10.5,-17.5],[12.5,-17]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.167,"y":0},"t":27,"s":[{"i":[[7.5,-0.75],[0,0],[-21.559,-0.406],[0,0]],"o":[[-7.5,0.75],[0,0],[19.938,0.375],[0,0]],"v":[[-62.75,-68.5],[-74.75,-66.125],[-60,-50],[-48,-67.5]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0},"t":73,"s":[{"i":[[7.5,-0.75],[0,0],[-21.559,-0.406],[0,0]],"o":[[-7.5,0.75],[0,0],[19.938,0.375],[0,0]],"v":[[-62.75,-68.5],[-74.75,-66.125],[-60,-50],[-48,-67.5]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.167,"y":0.167},"t":80,"s":[{"i":[[7.5,-0.75],[0,0],[-21.559,-0.406],[0,0]],"o":[[-7.5,0.75],[0,0],[19.938,0.375],[0,0]],"v":[[-63,-54],[-75.75,-53.875],[-60,-50],[-47.25,-56]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.167,"y":0},"t":87,"s":[{"i":[[7.5,-0.75],[0,0],[-21.559,-0.406],[0,0]],"o":[[-7.5,0.75],[0,0],[19.938,0.375],[0,0]],"v":[[-62.75,-68.5],[-74.75,-66.125],[-60,-50],[-48,-67.5]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0},"t":161,"s":[{"i":[[7.5,-0.75],[0,0],[-21.559,-0.406],[0,0]],"o":[[-7.5,0.75],[0,0],[19.938,0.375],[0,0]],"v":[[-62.75,-68.5],[-74.75,-66.125],[-60,-50],[-48,-67.5]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.167,"y":0.167},"t":167,"s":[{"i":[[7.5,-0.75],[0,0],[-21.559,-0.406],[0,0]],"o":[[-7.5,0.75],[0,0],[19.938,0.375],[0,0]],"v":[[-63,-54],[-75.75,-53.875],[-60,-50],[-47.25,-56]],"c":true}]},{"i":{"x":0.833,"y":1},"o":{"x":0.167,"y":0},"t":181,"s":[{"i":[[7.5,-0.75],[0,0],[-21.559,-0.406],[0,0]],"o":[[-7.5,0.75],[0,0],[19.938,0.375],[0,0]],"v":[[-62.75,-68.5],[-74.75,-66.125],[-60,-50],[-48,-67.5]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.211,"y":0},"t":212,"s":[{"i":[[7.5,-0.75],[0,0],[-21.559,-0.406],[0,0]],"o":[[-7.5,0.75],[0,0],[19.938,0.375],[0,0]],"v":[[-62.75,-68.5],[-74.75,-66.125],[-60,-50],[-48,-67.5]],"c":true}]},{"t":236,"s":[{"i":[[7.5,-0.75],[0,0],[-21.559,-0.406],[0,0]],"o":[[-7.5,0.75],[0,0],[19.938,0.375],[0,0]],"v":[[8.75,-66.5],[-20.75,-62.125],[-10.5,-17.5],[12.5,-17]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,0.291673937031,0.189019565956,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[0,0,0,1]},{"i":{"x":[0],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":27,"s":[0.201568483839,0.201568483839,0.201568483839,1]},{"i":{"x":[0],"y":[1]},"o":{"x":[0.211],"y":[0]},"t":212,"s":[0.201568483839,0.201568483839,0.201568483839,1]},{"t":236,"s":[0,0,0,1]}],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":249,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Shape Layer 2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[250,250,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":5,"s":[{"i":[[0,0],[0,0],[-29.25,1.5],[0,0]],"o":[[0,0],[0,0],[29.25,-1.5],[0,0]],"v":[[1.5,-102.25],[-27,-88.25],[10,-4.75],[35.75,-78.25]],"c":true}]},{"i":{"x":0.833,"y":1},"o":{"x":0.167,"y":0},"t":34,"s":[{"i":[[0,0],[0,0],[-29.25,1.5],[0,0]],"o":[[0,0],[0,0],[29.25,-1.5],[0,0]],"v":[[4.5,52.75],[-49,57.75],[3,74.25],[55.75,55.75]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.211,"y":0},"t":212,"s":[{"i":[[0,0],[0,0],[-29.25,1.5],[0,0]],"o":[[0,0],[0,0],[29.25,-1.5],[0,0]],"v":[[4.5,52.75],[-49,57.75],[3,74.25],[55.75,55.75]],"c":true}]},{"t":236,"s":[{"i":[[0,0],[0,0],[-29.25,1.5],[0,0]],"o":[[0,0],[0,0],[29.25,-1.5],[0,0]],"v":[[1.5,-102.25],[-27,-88.25],[10,-4.75],[35.75,-78.25]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,0.291673937031,0.189019565956,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":5,"s":[0,0,0,1]},{"i":{"x":[0],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":34,"s":[0.367843089384,0.367843089384,0.367843089384,1]},{"i":{"x":[0],"y":[1]},"o":{"x":[0.211],"y":[0]},"t":212,"s":[0.367843089384,0.367843089384,0.367843089384,1]},{"t":236,"s":[0,0,0,1]}],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 8","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":8,"s":[{"i":[[8.25,3.25],[0,0],[-4.812,-16.657],[0,0],[-9.75,0.75],[0,0]],"o":[[-12.869,-5.07],[0,0],[3.25,11.25],[0,0],[9.75,-0.75],[0,0]],"v":[[11.25,-66.75],[-24.75,-59.5],[-24.25,-29.25],[-14.75,-16],[5.75,-17.25],[13.5,-27.5]],"c":true}]},{"i":{"x":0.833,"y":1},"o":{"x":0.167,"y":0},"t":37,"s":[{"i":[[23.75,2],[0,0],[13,-0.5],[0,0],[-9.75,0.75],[0,0]],"o":[[-13.783,-1.161],[0,0],[-13,0.5],[0,0],[9.75,-0.75],[0,0]],"v":[[16.75,31.75],[-1.25,36],[-20.75,33.25],[-48.75,57],[1.75,52.25],[56,53]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.211,"y":0},"t":212,"s":[{"i":[[23.75,2],[0,0],[13,-0.5],[0,0],[-9.75,0.75],[0,0]],"o":[[-13.783,-1.161],[0,0],[-13,0.5],[0,0],[9.75,-0.75],[0,0]],"v":[[16.75,31.75],[-1.25,36],[-20.75,33.25],[-48.75,57],[1.75,52.25],[56,53]],"c":true}]},{"t":236,"s":[{"i":[[8.25,3.25],[0,0],[-4.812,-16.657],[0,0],[-9.75,0.75],[0,0]],"o":[[-12.869,-5.07],[0,0],[3.25,11.25],[0,0],[9.75,-0.75],[0,0]],"v":[[11.25,-66.75],[-24.75,-59.5],[-24.25,-29.25],[-14.75,-16],[5.75,-17.25],[13.5,-27.5]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,0.291673937031,0.189019565956,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":8,"s":[0,0,0,1]},{"i":{"x":[0],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":37,"s":[0.201568483839,0.201568483839,0.201568483839,1]},{"i":{"x":[0],"y":[1]},"o":{"x":[0.211],"y":[0]},"t":212,"s":[0.201568483839,0.201568483839,0.201568483839,1]},{"t":236,"s":[0,0,0,1]}],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 7","np":3,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":6,"s":[{"i":[[0,0],[5,-5.5],[0,0],[0,0],[0,0],[-3.536,5.657],[-3.071,8.19],[0,0],[0,0],[0,0],[14.5,4]],"o":[[0,0],[-5,5.5],[0,0],[0,0],[0,0],[2.5,-4],[3,-8],[0,0],[0,0],[0,0],[-14.5,-4]],"v":[[-6,-83],[-30.5,-70.5],[-25.5,-16.5],[-15.5,-10],[8.5,-9.5],[17.5,-13],[22,-29],[24.5,-52.5],[23.5,-62.5],[22.5,-72],[11,-83.5]],"c":true}]},{"i":{"x":0.833,"y":1},"o":{"x":0.167,"y":0},"t":35,"s":[{"i":[[0,0],[5,-5.5],[0,0],[0,0],[0,0],[-47,-30],[-39.387,64.551],[0,0],[0,0],[0,0],[14.5,4]],"o":[[0,0],[-5,5.5],[0,0],[0,0],[0,0],[47,30],[18,-29.5],[0,0],[0,0],[0,0],[-14.5,-4]],"v":[[-6.5,13.5],[-45,24],[-72.5,62.5],[-109.5,30.5],[-109,40],[-49,143],[103,89],[122,27.5],[101,48],[83.5,62],[47.5,20.5]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.211,"y":0},"t":212,"s":[{"i":[[0,0],[5,-5.5],[0,0],[0,0],[0,0],[-47,-30],[-39.387,64.551],[0,0],[0,0],[0,0],[14.5,4]],"o":[[0,0],[-5,5.5],[0,0],[0,0],[0,0],[47,30],[18,-29.5],[0,0],[0,0],[0,0],[-14.5,-4]],"v":[[-6.5,13.5],[-45,24],[-72.5,62.5],[-109.5,30.5],[-109,40],[-49,143],[103,89],[122,27.5],[101,48],[83.5,62],[47.5,20.5]],"c":true}]},{"t":236,"s":[{"i":[[0,0],[5,-5.5],[0,0],[0,0],[0,0],[-3.536,5.657],[-3.071,8.19],[0,0],[0,0],[0,0],[14.5,4]],"o":[[0,0],[-5,5.5],[0,0],[0,0],[0,0],[2.5,-4],[3,-8],[0,0],[0,0],[0,0],[-14.5,-4]],"v":[[-6,-83],[-30.5,-70.5],[-25.5,-16.5],[-15.5,-10],[8.5,-9.5],[17.5,-13],[22,-29],[24.5,-52.5],[23.5,-62.5],[22.5,-72],[11,-83.5]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,0.291673937031,0.189019565956,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":6,"s":[0,0,0,1]},{"i":{"x":[0],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":35,"s":[0,0,0,1]},{"i":{"x":[0],"y":[1]},"o":{"x":[0.211],"y":[0]},"t":212,"s":[0,0,0,1]},{"t":236,"s":[0,0,0,1]}],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 9","np":3,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":3,"s":[{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[1,14],[5.366,17.438],[0,0],[0,0],[0.5,-8],[0,0],[-9.5,-5.5],[0,0],[-17.5,-10],[0,0],[0,0],[-14.5,7.5],[0,0],[-5.5,5],[9.5,13]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[-1.727,-24.174],[-4.748,-15.43],[0,0],[0,0],[-1.835,29.354],[0,0],[19.568,11.329],[0,0],[17.5,10],[0,0],[0,0],[14.5,-7.5],[0,0],[5.5,-5],[-9.5,-13]],"v":[[38.5,-24.5],[57.25,-11.75],[54.75,-20.5],[49.5,-29.75],[46.5,-26.5],[43,-61],[36.748,-103.57],[0.75,-120.75],[-23.75,-110.5],[-40.5,-78],[-40.5,-50],[-26.5,-22.5],[-22.5,-14],[1,14],[23.75,12.5],[31.25,10.75],[36,0],[42.5,-4.5],[8.5,-38.5],[21.5,-30]],"c":true}]},{"i":{"x":0.833,"y":1},"o":{"x":0.167,"y":0},"t":36,"s":[{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[23.75,25],[2.551,18.066],[0,0],[0,0],[9,-28],[0,0],[-18.5,13],[0,0],[-17.5,-10],[0,0],[0,0],[-14.5,7.5],[0,0],[-5.5,5],[9.5,13]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[-16.692,-17.57],[-2.659,-18.826],[0,0],[0,0],[-9,28],[0,0],[18.5,-13],[0,0],[17.5,10],[0,0],[0,0],[14.5,-7.5],[0,0],[5.5,-5],[-9.5,-13]],"v":[[107.5,83.5],[95.25,101.25],[77.75,171.5],[81.5,193.25],[14.5,243.5],[-74,169],[-96.252,109.43],[-96.25,80.25],[-104.75,80.5],[-137.5,154],[-158.5,221],[-120.5,209.5],[-86.5,181],[-49,213],[14.75,249.5],[23.25,247.75],[112,188],[137.5,182.5],[195.5,189.5],[142.5,127]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.211,"y":0},"t":212,"s":[{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[23.75,25],[2.551,18.066],[0,0],[0,0],[9,-28],[0,0],[-18.5,13],[0,0],[-17.5,-10],[0,0],[0,0],[-14.5,7.5],[0,0],[-5.5,5],[9.5,13]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[-16.692,-17.57],[-2.659,-18.826],[0,0],[0,0],[-9,28],[0,0],[18.5,-13],[0,0],[17.5,10],[0,0],[0,0],[14.5,-7.5],[0,0],[5.5,-5],[-9.5,-13]],"v":[[107.5,83.5],[95.25,101.25],[77.75,171.5],[81.5,193.25],[14.5,243.5],[-74,169],[-96.252,109.43],[-96.25,80.25],[-104.75,80.5],[-137.5,154],[-158.5,221],[-120.5,209.5],[-86.5,181],[-49,213],[14.75,249.5],[23.25,247.75],[112,188],[137.5,182.5],[195.5,189.5],[142.5,127]],"c":true}]},{"t":236,"s":[{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[1,14],[5.366,17.438],[0,0],[0,0],[0.5,-8],[0,0],[-9.5,-5.5],[0,0],[-17.5,-10],[0,0],[0,0],[-14.5,7.5],[0,0],[-5.5,5],[9.5,13]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[-1.727,-24.174],[-4.748,-15.43],[0,0],[0,0],[-1.835,29.354],[0,0],[19.568,11.329],[0,0],[17.5,10],[0,0],[0,0],[14.5,-7.5],[0,0],[5.5,-5],[-9.5,-13]],"v":[[38.5,-24.5],[57.25,-11.75],[54.75,-20.5],[49.5,-29.75],[46.5,-26.5],[43,-61],[36.748,-103.57],[0.75,-120.75],[-23.75,-110.5],[-40.5,-78],[-40.5,-50],[-26.5,-22.5],[-22.5,-14],[1,14],[23.75,12.5],[31.25,10.75],[36,0],[42.5,-4.5],[8.5,-38.5],[21.5,-30]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,0.291673937031,0.189019565956,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":3,"s":[0,0,0,1]},{"i":{"x":[0],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":36,"s":[0.160784313725,0.160784313725,0.160784313725,1]},{"i":{"x":[0],"y":[1]},"o":{"x":[0.211],"y":[0]},"t":212,"s":[0.160784313725,0.160784313725,0.160784313725,1]},{"t":236,"s":[0,0,0,1]}],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 11","np":3,"cix":2,"bm":0,"ix":4,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":5,"s":[{"i":[[-1,32],[0,0],[-4,-17.5],[-31,17.5]],"o":[[1,-32],[0,0],[16.339,71.481],[31,-17.5]],"v":[[30,-101.5],[-18.5,-114.5],[-39,-38.5],[36,-18.5]],"c":true}]},{"i":{"x":0.833,"y":1},"o":{"x":0.167,"y":0},"t":32,"s":[{"i":[[-1,32],[0,0],[-30,-24.5],[-31,17.5]],"o":[[1,-32],[0,0],[56.792,46.38],[31,-17.5]],"v":[[99,84.5],[-98.5,64.5],[-64,157.5],[49,177.5]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.211,"y":0},"t":212,"s":[{"i":[[-1,32],[0,0],[-30,-24.5],[-31,17.5]],"o":[[1,-32],[0,0],[56.792,46.38],[31,-17.5]],"v":[[99,84.5],[-98.5,64.5],[-64,157.5],[49,177.5]],"c":true}]},{"t":236,"s":[{"i":[[-1,32],[0,0],[-4,-17.5],[-31,17.5]],"o":[[1,-32],[0,0],[16.339,71.481],[31,-17.5]],"v":[[30,-101.5],[-18.5,-114.5],[-39,-38.5],[36,-18.5]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,0.291673937031,0.189019565956,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":5,"s":[0,0,0,1]},{"i":{"x":[0],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":32,"s":[0.129411764706,0.129411764706,0.129411764706,1]},{"i":{"x":[0],"y":[1]},"o":{"x":[0.211],"y":[0]},"t":212,"s":[0.129411764706,0.129411764706,0.129411764706,1]},{"t":236,"s":[0,0,0,1]}],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":20,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 14","np":3,"cix":2,"bm":0,"ix":5,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":5,"s":[{"i":[[18.254,15.646],[18,-3],[5,-19.5],[0,0],[-15,-24.5],[0,0],[-10.5,5.5],[0,0],[7.5,22.5]],"o":[[-7,-6],[-26.559,4.427],[-3.355,13.086],[0,0],[13.579,22.178],[0,0],[21.098,-11.051],[0,0],[-7.5,-22.5]],"v":[[31,-118],[-4,-129],[-43,-90.5],[-53,-59.5],[-33,-5.5],[7.5,17],[41.5,0.5],[53,-41],[46,-78.5]],"c":true}]},{"i":{"x":0.833,"y":1},"o":{"x":0.167,"y":0},"t":32,"s":[{"i":[[50,9],[26,-31.5],[-2.739,-73.949],[0,0],[-16,20.5],[0,0],[-15,-18.5],[0,0],[7.5,22.5]],"o":[[-50,-9],[-26,31.5],[0.5,13.5],[0,0],[16,-20.5],[0,0],[15,18.5],[0,0],[-7.5,-22.5]],"v":[[22,-232],[-86,-189],[-125,-77.5],[-120,-53.5],[-95,-152.5],[-5.5,-204],[91.5,-159.5],[127,-51],[129,-132.5]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.211,"y":0},"t":212,"s":[{"i":[[50,9],[26,-31.5],[-2.739,-73.949],[0,0],[-16,20.5],[0,0],[-15,-18.5],[0,0],[7.5,22.5]],"o":[[-50,-9],[-26,31.5],[0.5,13.5],[0,0],[16,-20.5],[0,0],[15,18.5],[0,0],[-7.5,-22.5]],"v":[[22,-232],[-86,-189],[-125,-77.5],[-120,-53.5],[-95,-152.5],[-5.5,-204],[91.5,-159.5],[127,-51],[129,-132.5]],"c":true}]},{"t":236,"s":[{"i":[[18.254,15.646],[18,-3],[5,-19.5],[0,0],[-15,-24.5],[0,0],[-10.5,5.5],[0,0],[7.5,22.5]],"o":[[-7,-6],[-26.559,4.427],[-3.355,13.086],[0,0],[13.579,22.178],[0,0],[21.098,-11.051],[0,0],[-7.5,-22.5]],"v":[[31,-118],[-4,-129],[-43,-90.5],[-53,-59.5],[-33,-5.5],[7.5,17],[41.5,0.5],[53,-41],[46,-78.5]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,0.291673937031,0.189019565956,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":5,"s":[0,0,0,1]},{"i":{"x":[0],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":32,"s":[0.047843185126,0.047843185126,0.047843185126,1]},{"i":{"x":[0],"y":[1]},"o":{"x":[0.211],"y":[0]},"t":212,"s":[0.047843185126,0.047843185126,0.047843185126,1]},{"t":236,"s":[0,0,0,1]}],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 10","np":3,"cix":2,"bm":0,"ix":6,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":6,"s":[{"i":[[0,0],[7.5,-27],[0,0],[0,0],[-9.5,2.5],[0,0]],"o":[[0,0],[-11.936,42.971],[0,0],[0,0],[4.859,-1.279],[0,0]],"v":[[4,-118.5],[-36.5,-93],[-34.5,-20],[0,13],[45.5,-9.5],[26,-119.5]],"c":true}]},{"i":{"x":0.833,"y":1},"o":{"x":0.167,"y":0},"t":33,"s":[{"i":[[0,0],[-33,-30],[0,0],[0,0],[0.5,5],[0,0]],"o":[[0,0],[33,30],[0,0],[0,0],[-0.5,-5],[0,0]],"v":[[-97,83.5],[-67.5,179],[14.5,245],[82,194],[77.5,172.5],[97,95.5]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.211,"y":0},"t":212,"s":[{"i":[[0,0],[-33,-30],[0,0],[0,0],[0.5,5],[0,0]],"o":[[0,0],[33,30],[0,0],[0,0],[-0.5,-5],[0,0]],"v":[[-97,83.5],[-67.5,179],[14.5,245],[82,194],[77.5,172.5],[97,95.5]],"c":true}]},{"t":236,"s":[{"i":[[0,0],[7.5,-27],[0,0],[0,0],[-9.5,2.5],[0,0]],"o":[[0,0],[-11.936,42.971],[0,0],[0,0],[4.859,-1.279],[0,0]],"v":[[4,-118.5],[-36.5,-93],[-34.5,-20],[0,13],[45.5,-9.5],[26,-119.5]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,0.291673937031,0.189019565956,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":6,"s":[0,0,0,1]},{"i":{"x":[0],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":33,"s":[0.392941224341,0.392941224341,0.392941224341,1]},{"i":{"x":[0],"y":[1]},"o":{"x":[0.211],"y":[0]},"t":212,"s":[0.392941224341,0.392941224341,0.392941224341,1]},{"t":236,"s":[0,0,0,1]}],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 6","np":3,"cix":2,"bm":0,"ix":7,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":7,"s":[{"i":[[27.576,-11.537],[0,0],[-12.75,5.75],[0,0],[0,0]],"o":[[-24.5,10.25],[0,0],[12.75,-5.75],[0,0],[0,0]],"v":[[-19.871,-97.358],[-31.008,-56.456],[-5.019,-21.054],[26.759,-31.258],[24.241,-93.253]],"c":true}]},{"i":{"x":0.833,"y":1},"o":{"x":0.167,"y":0},"t":37,"s":[{"i":[[27.576,-11.537],[0,0],[-12.75,5.75],[0,0],[0,0]],"o":[[-24.5,10.25],[0,0],[12.75,-5.75],[0,0],[0,0]],"v":[[-82.5,-122.5],[-104.25,-88.25],[-76.5,-108],[-42,-111.75],[-43.5,-121]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.211,"y":0},"t":212,"s":[{"i":[[27.576,-11.537],[0,0],[-12.75,5.75],[0,0],[0,0]],"o":[[-24.5,10.25],[0,0],[12.75,-5.75],[0,0],[0,0]],"v":[[-82.5,-122.5],[-104.25,-88.25],[-76.5,-108],[-42,-111.75],[-43.5,-121]],"c":true}]},{"t":236,"s":[{"i":[[27.576,-11.537],[0,0],[-12.75,5.75],[0,0],[0,0]],"o":[[-24.5,10.25],[0,0],[12.75,-5.75],[0,0],[0,0]],"v":[[-19.871,-97.358],[-31.008,-56.456],[-5.019,-21.054],[26.759,-31.258],[24.241,-93.253]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,0.291673937031,0.189019565956,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":7,"s":[0,0,0,1]},{"i":{"x":[0],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":37,"s":[0,0,0,1]},{"i":{"x":[0],"y":[1]},"o":{"x":[0.211],"y":[0]},"t":212,"s":[0,0,0,1]},{"t":236,"s":[0,0,0,1]}],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[13.5,12],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[-106.19,100],"ix":3},"r":{"a":0,"k":-16,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 5","np":3,"cix":2,"bm":0,"ix":8,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":4,"s":[{"i":[[14,-8],[0,0],[-12.75,5.75],[0,0],[0,0]],"o":[[-14.969,8.554],[0,0],[12.75,-5.75],[0,0],[0,0]],"v":[[-7.5,-62.5],[-12.25,-38.75],[10,-33],[22.5,-45.25],[11,-62.5]],"c":true}]},{"i":{"x":0.833,"y":1},"o":{"x":0.167,"y":0},"t":34,"s":[{"i":[[27.576,-11.537],[0,0],[-12.75,5.75],[0,0],[0,0]],"o":[[-24.5,10.25],[0,0],[12.75,-5.75],[0,0],[0,0]],"v":[[-82.5,-122.5],[-104.25,-88.25],[-76.5,-108],[-42,-111.75],[-43.5,-121]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.211,"y":0},"t":212,"s":[{"i":[[27.576,-11.537],[0,0],[-12.75,5.75],[0,0],[0,0]],"o":[[-24.5,10.25],[0,0],[12.75,-5.75],[0,0],[0,0]],"v":[[-82.5,-122.5],[-104.25,-88.25],[-76.5,-108],[-42,-111.75],[-43.5,-121]],"c":true}]},{"t":236,"s":[{"i":[[14,-8],[0,0],[-12.75,5.75],[0,0],[0,0]],"o":[[-14.969,8.554],[0,0],[12.75,-5.75],[0,0],[0,0]],"v":[[-7.5,-62.5],[-12.25,-38.75],[10,-33],[22.5,-45.25],[11,-62.5]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,0.291673937031,0.189019565956,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":4,"s":[0,0,0,1]},{"i":{"x":[0],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":34,"s":[0,0,0,1]},{"i":{"x":[0],"y":[1]},"o":{"x":[0.211],"y":[0]},"t":212,"s":[0,0,0,1]},{"t":236,"s":[0,0,0,1]}],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 4","np":3,"cix":2,"bm":0,"ix":9,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":6,"s":[{"i":[[0,0],[0,0],[2.5,-16.5],[-2.5,-15],[0,0],[0,0]],"o":[[0,0],[0,0],[-2.5,16.5],[2.5,15],[0,0],[0,0]],"v":[[15.5,-74.5],[-13.5,-81],[-25.5,-68.5],[-23,-47],[-8,-41],[6.5,-41]],"c":true}]},{"i":{"x":0.833,"y":1},"o":{"x":0.167,"y":0},"t":36,"s":[{"i":[[0,0],[0,0],[2.5,-16.5],[-2.5,-15],[0,0],[0,0]],"o":[[0,0],[0,0],[-2.5,16.5],[2.5,15],[0,0],[0,0]],"v":[[-12.5,-114],[-33.5,-92.5],[-17.5,-65],[-41,-8],[-16,7],[0.5,8.5]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.211,"y":0},"t":212,"s":[{"i":[[0,0],[0,0],[2.5,-16.5],[-2.5,-15],[0,0],[0,0]],"o":[[0,0],[0,0],[-2.5,16.5],[2.5,15],[0,0],[0,0]],"v":[[-12.5,-114],[-33.5,-92.5],[-17.5,-65],[-41,-8],[-16,7],[0.5,8.5]],"c":true}]},{"t":236,"s":[{"i":[[0,0],[0,0],[2.5,-16.5],[-2.5,-15],[0,0],[0,0]],"o":[[0,0],[0,0],[-2.5,16.5],[2.5,15],[0,0],[0,0]],"v":[[15.5,-74.5],[-13.5,-81],[-25.5,-68.5],[-23,-47],[-8,-41],[6.5,-41]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,0.291673937031,0.189019565956,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":6,"s":[0,0,0,1]},{"i":{"x":[0],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":36,"s":[0.440000047871,0.440000047871,0.440000047871,1]},{"i":{"x":[0],"y":[1]},"o":{"x":[0.211],"y":[0]},"t":212,"s":[0.440000047871,0.440000047871,0.440000047871,1]},{"t":236,"s":[0,0,0,1]}],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 3","np":3,"cix":2,"bm":0,"ix":10,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[{"i":[[21.108,-2.111],[0,0],[-12.25,0.5],[0,0]],"o":[[-15,1.5],[0,0],[12.25,-0.5],[0,0]],"v":[[4.875,-69.375],[-8,-47.75],[-0.5,-24.875],[13.625,-50.875]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.167,"y":0},"t":27,"s":[{"i":[[21.108,-2.111],[0,0],[-12.25,0.5],[0,0]],"o":[[-15,1.5],[0,0],[12.25,-0.5],[0,0]],"v":[[-65.125,-67.875],[-89.5,-57.25],[-58.5,-51.375],[-30.875,-58.875]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0},"t":73,"s":[{"i":[[21.108,-2.111],[0,0],[-12.25,0.5],[0,0]],"o":[[-15,1.5],[0,0],[12.25,-0.5],[0,0]],"v":[[-65.125,-67.875],[-89.5,-57.25],[-58.5,-51.375],[-30.875,-58.875]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.167,"y":0.167},"t":80,"s":[{"i":[[21.108,-2.111],[0,0],[-12.25,0.5],[0,0]],"o":[[-15,1.5],[0,0],[12.25,-0.5],[0,0]],"v":[[-61.625,-53.875],[-89.5,-57.25],[-58.5,-51.375],[-30.875,-58.875]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.167,"y":0},"t":87,"s":[{"i":[[21.108,-2.111],[0,0],[-12.25,0.5],[0,0]],"o":[[-15,1.5],[0,0],[12.25,-0.5],[0,0]],"v":[[-65.125,-67.875],[-89.5,-57.25],[-58.5,-51.375],[-30.875,-58.875]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0},"t":161,"s":[{"i":[[21.108,-2.111],[0,0],[-12.25,0.5],[0,0]],"o":[[-15,1.5],[0,0],[12.25,-0.5],[0,0]],"v":[[-65.125,-67.875],[-89.5,-57.25],[-58.5,-51.375],[-30.875,-58.875]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.167,"y":0.167},"t":167,"s":[{"i":[[21.108,-2.111],[0,0],[-12.25,0.5],[0,0]],"o":[[-15,1.5],[0,0],[12.25,-0.5],[0,0]],"v":[[-61.625,-53.875],[-89.5,-57.25],[-58.5,-51.375],[-30.875,-58.875]],"c":true}]},{"i":{"x":0.833,"y":1},"o":{"x":0.167,"y":0},"t":181,"s":[{"i":[[21.108,-2.111],[0,0],[-12.25,0.5],[0,0]],"o":[[-15,1.5],[0,0],[12.25,-0.5],[0,0]],"v":[[-65.125,-67.875],[-89.5,-57.25],[-58.5,-51.375],[-30.875,-58.875]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.211,"y":0},"t":212,"s":[{"i":[[21.108,-2.111],[0,0],[-12.25,0.5],[0,0]],"o":[[-15,1.5],[0,0],[12.25,-0.5],[0,0]],"v":[[-65.125,-67.875],[-89.5,-57.25],[-58.5,-51.375],[-30.875,-58.875]],"c":true}]},{"t":236,"s":[{"i":[[21.108,-2.111],[0,0],[-12.25,0.5],[0,0]],"o":[[-15,1.5],[0,0],[12.25,-0.5],[0,0]],"v":[[4.875,-69.375],[-8,-47.75],[-0.5,-24.875],[13.625,-50.875]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,0.291673937031,0.189019565956,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[0,0,0,1]},{"i":{"x":[0],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":27,"s":[1,1,1,1]},{"i":{"x":[0],"y":[1]},"o":{"x":[0.211],"y":[0]},"t":212,"s":[1,1,1,1]},{"t":236,"s":[0,0,0,1]}],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 2","np":3,"cix":2,"bm":0,"ix":11,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":2,"s":[{"i":[[19,-1.125],[0,0],[-13.875,2.125],[0,0]],"o":[[-19,1.125],[0,0],[13.285,-2.035],[0,0]],"v":[[-8.75,-70.375],[-11.125,-33.875],[3.125,-31],[7.875,-55.25]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.167,"y":0},"t":29,"s":[{"i":[[19,-1.125],[0,0],[-13.875,2.125],[0,0]],"o":[[-19,1.125],[0,0],[13.285,-2.035],[0,0]],"v":[[59.25,-74.375],[28.375,-59.375],[65.625,-56.5],[90.375,-67.25]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0},"t":73,"s":[{"i":[[19,-1.125],[0,0],[-13.875,2.125],[0,0]],"o":[[-19,1.125],[0,0],[13.285,-2.035],[0,0]],"v":[[59.25,-74.375],[28.375,-59.375],[65.625,-56.5],[90.375,-67.25]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.167,"y":0.167},"t":80,"s":[{"i":[[19,-1.125],[0,0],[-13.875,2.125],[0,0]],"o":[[-19,1.125],[0,0],[13.285,-2.035],[0,0]],"v":[[63,-57.875],[28.375,-59.375],[65.625,-56.5],[90.375,-67.25]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.167,"y":0},"t":87,"s":[{"i":[[19,-1.125],[0,0],[-13.875,2.125],[0,0]],"o":[[-19,1.125],[0,0],[13.285,-2.035],[0,0]],"v":[[59.25,-74.375],[28.375,-59.375],[65.625,-56.5],[90.375,-67.25]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0},"t":161,"s":[{"i":[[19,-1.125],[0,0],[-13.875,2.125],[0,0]],"o":[[-19,1.125],[0,0],[13.285,-2.035],[0,0]],"v":[[59.25,-74.375],[28.375,-59.375],[65.625,-56.5],[90.375,-67.25]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.167,"y":0.167},"t":167,"s":[{"i":[[19,-1.125],[0,0],[-13.875,2.125],[0,0]],"o":[[-19,1.125],[0,0],[13.285,-2.035],[0,0]],"v":[[63,-57.875],[28.375,-59.375],[65.625,-56.5],[90.375,-67.25]],"c":true}]},{"i":{"x":0.833,"y":1},"o":{"x":0.167,"y":0},"t":181,"s":[{"i":[[19,-1.125],[0,0],[-13.875,2.125],[0,0]],"o":[[-19,1.125],[0,0],[13.285,-2.035],[0,0]],"v":[[59.25,-74.375],[28.375,-59.375],[65.625,-56.5],[90.375,-67.25]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.211,"y":0},"t":212,"s":[{"i":[[19,-1.125],[0,0],[-13.875,2.125],[0,0]],"o":[[-19,1.125],[0,0],[13.285,-2.035],[0,0]],"v":[[59.25,-74.375],[28.375,-59.375],[65.625,-56.5],[90.375,-67.25]],"c":true}]},{"t":236,"s":[{"i":[[19,-1.125],[0,0],[-13.875,2.125],[0,0]],"o":[[-19,1.125],[0,0],[13.285,-2.035],[0,0]],"v":[[-8.75,-70.375],[-11.125,-33.875],[3.125,-31],[7.875,-55.25]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,0.291673937031,0.189019565956,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":2,"s":[0,0,0,1]},{"i":{"x":[0],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":29,"s":[1,1,1,1]},{"i":{"x":[0],"y":[1]},"o":{"x":[0.211],"y":[0]},"t":212,"s":[1,1,1,1]},{"t":236,"s":[0,0,0,1]}],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":12,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":5,"s":[{"i":[[0,0],[0,0],[-1.5,-6],[0,0],[-5,-16],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0.5,3.5],[0,0],[0,0]],"o":[[0,0],[0,0],[6.38,25.52],[0,0],[5,16],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[-0.728,-5.096],[0,0],[0,0]],"v":[[10,-75],[-8,-82],[-27.5,-63.5],[-27,-47.5],[-15.5,-24.5],[-10.5,-25.5],[-6.5,-22.5],[0,-19],[5,-22],[13.5,-16.5],[15.5,-20],[19,-28],[22,-39],[23,-57]],"c":true}]},{"i":{"x":0.833,"y":1},"o":{"x":0.167,"y":0},"t":32,"s":[{"i":[[0,0],[0,0],[-4,-26],[0,0],[-5,-16],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[-17,83],[0,0],[0,0]],"o":[[0,0],[0,0],[4,26],[0,0],[5,16],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[17,-83],[0,0],[0,0]],"v":[[-4,-215],[-45,-199],[-2,-122],[10,-32],[43,-18],[19,11],[32,34],[29,55],[36,72],[12,80],[10,159],[118,63],[127,-80],[95,-163]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.211,"y":0},"t":212,"s":[{"i":[[0,0],[0,0],[-4,-26],[0,0],[-5,-16],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[-17,83],[0,0],[0,0]],"o":[[0,0],[0,0],[4,26],[0,0],[5,16],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[17,-83],[0,0],[0,0]],"v":[[-4,-215],[-45,-199],[-2,-122],[10,-32],[43,-18],[19,11],[32,34],[29,55],[36,72],[12,80],[10,159],[118,63],[127,-80],[95,-163]],"c":true}]},{"t":236,"s":[{"i":[[0,0],[0,0],[-1.5,-6],[0,0],[-5,-16],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0.5,3.5],[0,0],[0,0]],"o":[[0,0],[0,0],[6.38,25.52],[0,0],[5,16],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[-0.728,-5.096],[0,0],[0,0]],"v":[[10,-75],[-8,-82],[-27.5,-63.5],[-27,-47.5],[-15.5,-24.5],[-10.5,-25.5],[-6.5,-22.5],[0,-19],[5,-22],[13.5,-16.5],[15.5,-20],[19,-28],[22,-39],[23,-57]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,0.291673937031,0.189019565956,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":5,"s":[0,0,0,1]},{"i":{"x":[0],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":32,"s":[0,0,0,1]},{"i":{"x":[0],"y":[1]},"o":{"x":[0.211],"y":[0]},"t":212,"s":[0,0,0,1]},{"t":236,"s":[0,0,0,1]}],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":20,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 13","np":3,"cix":2,"bm":0,"ix":14,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":249,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Shape Layer 1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[250,250,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[{"i":[[64,-3],[31.5,-42.5],[0,0],[0,0],[0.25,-10.75],[0,-9.75],[-4.974,-2.321],[0,0],[0,0],[-10.75,-10.75],[-57.5,1.25],[-23.859,-1.026],[0,0],[-5.171,1.441],[0.25,12.75],[10.898,4.265],[0,0],[0,0],[37,4.25]],"o":[[-54.96,2.576],[-31.5,42.5],[0,0],[0,0],[-0.25,10.75],[0,9.75],[2.812,1.312],[0,0],[0,0],[10.75,10.75],[57.5,-1.25],[23.25,1],[0,0],[7.625,-2.125],[-0.25,-12.75],[-5.75,-2.25],[0,0],[0,0],[-24.095,-2.768]],"v":[[-4,-263.5],[-267.5,-256.5],[-266.5,-62],[-265,-23.75],[-263.75,22.25],[-267,96.5],[-265.25,143.75],[-263.625,197.594],[-259.75,254],[-161.25,261],[-8.25,266],[169.75,266],[268.5,269.25],[259,98.5],[263.25,-31.75],[267.25,-125.625],[261.375,-190.875],[254.625,-264.625],[170,-270.25]],"c":true}]},{"i":{"x":0.833,"y":1},"o":{"x":0.167,"y":0},"t":27,"s":[{"i":[[64,-3],[31.5,-42.5],[0,0],[0,0],[0.25,-10.75],[0,-9.75],[-4.974,-2.321],[0,0],[0,0],[-10.75,-10.75],[-57.5,1.25],[-12.57,20.305],[0,0],[-5.171,1.441],[0.25,12.75],[10.898,4.264],[0,0],[0,0],[3.5,24]],"o":[[-54.96,2.576],[-31.5,42.5],[0,0],[0,0],[-0.25,10.75],[0,9.75],[2.812,1.312],[0,0],[0,0],[10.75,10.75],[57.5,-1.25],[6.5,-10.5],[0,0],[7.625,-2.125],[-0.25,-12.75],[-5.75,-2.25],[0,0],[0,0],[-3.5,-24]],"v":[[0,-235.5],[-107.5,-161.5],[-120.5,-59],[-120,-37.75],[-124.75,-27.75],[-120,5.5],[-115.25,36.75],[-110.625,37.594],[-100.75,76],[-75.25,116],[9.75,157],[112.75,69],[121.5,27.25],[131,26.5],[143.25,-13.75],[140.25,-52.625],[127.375,-51.875],[128.625,-68.625],[129,-129.25]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.211,"y":0},"t":212,"s":[{"i":[[64,-3],[31.5,-42.5],[0,0],[0,0],[0.25,-10.75],[0,-9.75],[-4.974,-2.321],[0,0],[0,0],[-10.75,-10.75],[-57.5,1.25],[-12.57,20.305],[0,0],[-5.171,1.441],[0.25,12.75],[10.898,4.264],[0,0],[0,0],[3.5,24]],"o":[[-54.96,2.576],[-31.5,42.5],[0,0],[0,0],[-0.25,10.75],[0,9.75],[2.812,1.312],[0,0],[0,0],[10.75,10.75],[57.5,-1.25],[6.5,-10.5],[0,0],[7.625,-2.125],[-0.25,-12.75],[-5.75,-2.25],[0,0],[0,0],[-3.5,-24]],"v":[[0,-235.5],[-107.5,-161.5],[-120.5,-59],[-120,-37.75],[-124.75,-27.75],[-120,5.5],[-115.25,36.75],[-110.625,37.594],[-100.75,76],[-75.25,116],[9.75,157],[112.75,69],[121.5,27.25],[131,26.5],[143.25,-13.75],[140.25,-52.625],[127.375,-51.875],[128.625,-68.625],[129,-129.25]],"c":true}]},{"t":236,"s":[{"i":[[64,-3],[31.5,-42.5],[0,0],[0,0],[0.25,-10.75],[0,-9.75],[-4.974,-2.321],[0,0],[0,0],[-10.75,-10.75],[-57.5,1.25],[-23.859,-1.026],[0,0],[-5.171,1.441],[0.25,12.75],[10.898,4.265],[0,0],[0,0],[37,4.25]],"o":[[-54.96,2.576],[-31.5,42.5],[0,0],[0,0],[-0.25,10.75],[0,9.75],[2.812,1.312],[0,0],[0,0],[10.75,10.75],[57.5,-1.25],[23.25,1],[0,0],[7.625,-2.125],[-0.25,-12.75],[-5.75,-2.25],[0,0],[0,0],[-24.095,-2.768]],"v":[[-4,-263.5],[-267.5,-256.5],[-266.5,-62],[-265,-23.75],[-263.75,22.25],[-267,96.5],[-265.25,143.75],[-263.625,197.594],[-259.75,254],[-161.25,261],[-8.25,266],[169.75,266],[268.5,269.25],[259,98.5],[263.25,-31.75],[267.25,-125.625],[261.375,-190.875],[254.625,-264.625],[170,-270.25]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,0.291673937031,0.189019565956,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[0,0,0,1]},{"i":{"x":[0],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":27,"s":[0.515293974035,0.515293974035,0.515293974035,1]},{"i":{"x":[0],"y":[1]},"o":{"x":[0.211],"y":[0]},"t":212,"s":[0.515293974035,0.515293974035,0.515293974035,1]},{"t":236,"s":[0,0,0,1]}],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":249,"st":0,"bm":0}],"markers":[]} \ No newline at end of file diff --git a/scripts/main.js b/scripts/main.js index 8aa32c0..3ae4e41 100644 --- a/scripts/main.js +++ b/scripts/main.js @@ -1,63 +1,218 @@ -var faceWrapper = document.getElementById("my-face-wrapper"); - -lottie.setQuality("low"); - -var myFaceContainer = document.getElementById("my-face"); -var morphShape1Container = document.getElementById("morph-shape-1"); -var morphShape2Container = document.getElementById("morph-shape-2"); -var morphShape3Container = document.getElementById("morph-shape-3"); - -var myFace = lottie.loadAnimation({ - container: myFaceContainer, - path: "scripts/face.json", - renderer: "svg", - loop: false, - autoplay: false, -}); - -var morphShape1 = lottie.loadAnimation({ - container: morphShape1Container, - path: "scripts/morphing-shape-1.json", - renderer: "svg", - loop: true, - autoplay: true, -}); - -var morphShape2 = lottie.loadAnimation({ - container: morphShape2Container, - path: "scripts/morphing-shape-1.json", - renderer: "svg", - loop: true, - autoplay: true, -}); - -morphShape1.setSpeed(1.5); - -var morphShape3 = lottie.loadAnimation({ - container: morphShape3Container, - path: "scripts/morphing-shape-1.json", - renderer: "svg", - loop: true, - autoplay: true, -}); - -morphShape3.setSpeed(2); -function steadyState() { - myFace.playSegments([44, 205], true); - myFace.loop = true; + +//############################################# -- Intro Animations + +const heroTextSection = document.querySelector(".hero-section > div:nth-child(2)"); +const myImageBlock = document.querySelector(".benjamin-image-block"); +const myBigTextBlock = document.querySelector(".benjamin-big-text-block"); +const mainTextBlock = document.querySelector(".main-text-block"); +const mainCTA = document.querySelector(".main-cta-button"); +const allHeaderElements = document.querySelectorAll("header *"); +const mountains = document.querySelectorAll("#mountains"); +const clouds = document.querySelectorAll("#clouds"); + + +function intro() { + + anime({ + targets: heroTextSection, + width: [0, "50%"], + translateX: [200, 0], + easing: "cubicBezier( 0.93, 0, 0.09, 1 )", + duration: 1500, + delay: 1000, + }); + + anime({ + targets: allHeaderElements, + translateX: [-20, 0], +// rotateY: [50, 0], + opacity: [0, 1], + easing: "easeOutQuad", + duration: 800, + delay: anime.stagger(100, {start: 1000}/* , {easing: 'easeOutQuad'} */), + }); + + anime({ + targets: myBigTextBlock, + translateY: [100, 0], + opacity: [0, 1], + easing: "cubicBezier( 0.1, 0.63, 0.355, 1 )", + duration: 1200, + delay: 2000, + }); + + anime({ + targets: myImageBlock, + translateY: [100, 0], + opacity: [0, 0.8], + easing: "cubicBezier( 0.1, 0.63, 0.355, 1 )", + duration: 1500, + delay: 2200, + }); + + anime({ + targets: mainTextBlock, + translateX: [-50, 0], + opacity: [0, 1], + easing: "cubicBezier( 0.1, 0.63, 0.355, 1 )", + duration: 1200, + delay: 2500, + }); + + anime({ + targets: mainCTA, + translateX: [-50, 0], + opacity: [0, 1], + easing: "cubicBezier( 0.1, 0.63, 0.355, 1 )", + duration: 1200, + delay: 2600, + }); + + anime({ + targets: mountains, + translateY: [200, 0], + opacity: [0, 1], + easing: "cubicBezier(0.1, 0.63, 0.355, 1)", + duration: 1500, + delay: 1000, + }); + + anime({ + targets: clouds, + opacity: [0.2, 1], + easing: "easeOutQuad", + duration: 1200, + delay: 800, + }); + } -var startSteadyState; +// Intro Initialization +function introInit() { + + anime({ + targets: heroTextSection, + width: [0], + translateX: 200, + duration: 0 + }); + + anime({ + targets: allHeaderElements, + translateX: [-20], + opacity: [0], + duration: 0 + }); + + anime({ + targets: myBigTextBlock, + translateY: [100], + opacity: [0], + duration: 0 + }); + + anime({ + targets: myImageBlock, + translateY: [100], + opacity: [0], + duration: 0 + }); + + anime({ + targets: mainTextBlock, + translateX: [-50], + opacity: [0], + duration: 0 + }); + + anime({ + targets: mainCTA, + translateX: [-50], + opacity: [0], + duration: 0 + }); + + anime({ + targets: mountains, + opacity: 0, + duration: 0 + }); + +} + +introInit(); + + + + + +//############################################# -- Header Scroll interactions + +var headerController = document.querySelector("#header-controller"); +var windowRect = { + rootMargin: "0px", +}; + +var headerObserver = new IntersectionObserver(changeHeader, windowRect); + +function changeHeader(entry) { + + if(entry[0].isIntersecting) { + document.querySelector("header").className = "none"; + anime({ + targets: "header img", + width: 40, + height: 100, + top: 0, + duration: 400, + easing: "easeOutCubic", + }); + + anime({ + targets: "header > a > div", + translateX: 0, + opacity: 1, + duration: 1000, + }); + + } else { + document.querySelector("header").classList.add("scrolled"); + anime({ + targets: "header img", + width: 60, + height: 130, + top: 20, + duration: 400, + easing: "easeOutCubic", + }); + + anime({ + targets: "header > a > div", + translateX: -50, + opacity: 0, + duration: 1000, + }); + } +} + + + + +//############################################# -- Window Load + +setTimeout(() => { + headerObserver.observe(headerController); +}, 3000); window.addEventListener("load", () => { - myFace.playSegments([0, 50], true); - startSteadyState = setTimeout(() => {steadyState();}, 1000); + setTimeout(() => {intro();}, 1000); + }); @@ -66,110 +221,142 @@ window.addEventListener("load", () => { -//--------------------------------------------------------------------------- Services mouseover -document.querySelectorAll(".hero-content-link").forEach(item => { - item.addEventListener("mouseover", () => { - - clearTimeout(startSteadyState); - myFace.loop = false; - myFace.playSegments([210, 249], true); - faceWrapper.style.transform = "rotate3d(20,-20,0,20deg) translateZ(-50px)"; - document.getElementById("bg-circle").style.transform = "rotate3d(20,-20,0,20deg) translate3d(-50%,-55%,-300px)"; - myFaceContainer.style.mixBlendMode = "screen"; - - }); -}); +//############################################# -- Secitons intersection Observer -document.getElementById("ui-ux-design").addEventListener("mouseover", () => { +var sections = document.querySelectorAll(".scroll-into-view"); +//var sectionContainer = document.querySelector(".my-work-section > div:nth-child(2)"); + +var windowRect2 = { + rootMargin: "0px 0px -200px 0px", +}; + +var sectionsIO = new IntersectionObserver(sectionsObserverFn, windowRect2); + +function sectionsObserverFn(entries) { - setTimeout(() => {document.getElementById("color-overlay").style.backgroundColor = "#A5E6BA";}, 400); -}); + entries.forEach(entry => { + if(entry.isIntersecting) { + entry.target.classList.add("scrolled-into-view"); + +// anime({ +// targets: contents[entry.target.firstElementChild], +// width: [0, "50%"], +// easing: "cubicBezier( 0.93, 0, 0.09, 1 )", +// opacity: [0, 1], +// duration: 1200, +// }); + } + }); + +} -document.getElementById("web-design").addEventListener("mouseover", () => { - setTimeout(() => {document.getElementById("color-overlay").style.backgroundColor = "#5B2A86";}, 400); -}); -document.getElementById("frontend-dev").addEventListener("mouseover", () => { - setTimeout(() => {document.getElementById("color-overlay").style.backgroundColor = "#7785AC";}, 400); -}); -document.getElementById("graphic-design").addEventListener("mouseover", () => { - setTimeout(() => {document.getElementById("color-overlay").style.backgroundColor = "#9AC6C5";}, 400); +sections.forEach(item => { + sectionsIO.observe(item); }); -//--------------------------------------------------------------------------- Services mouseout -document.querySelectorAll(".hero-content-link").forEach(item => { - item.addEventListener("mouseout", () => { - - startSteadyState = setTimeout(() => { - - steadyState(); - faceWrapper.style.transform = "none"; - document.getElementById("color-overlay").style.backgroundColor = "transparent"; - document.getElementById("bg-circle").style.transform = "translate3d(-50%,-55%,-300px)"; - myFaceContainer.style.mixBlendMode = "normal"; - - }, 500); - - }); + +//############################################# -- Content intersection Observer + +const contents = document.querySelectorAll(".scroll-into-view-content"); + +const contentsIO = new IntersectionObserver(contentsObserverFn, windowRect2); + +function contentsObserverFn(entries) { + + entries.forEach(entry => { + if(entry.isIntersecting) { + entry.target.classList.add("scrolled-into-view-content"); + } + }); + +} + + + +contents.forEach(item => { + contentsIO.observe(item); }); -/* -//--------------------------------------------------------------------------- UI UX -uiUXLink.addEventListener("mouseover", () => { - clearTimeout(startSteadyState); - myFace.loop = false; - myFace.playSegments([210, 249], true); - faceWrapper.style.transform = "rotate3d(20,-20,0,20deg) translateZ(-50px)"; + + +const myToolsIcons = document.querySelectorAll(".my-specialties-section > div > div"); +const myToolsHeader = document.querySelectorAll(".my-specialties-section h2"); +const myToolsParagraph = document.querySelector(".my-specialties-section p"); + +let myToolsIO = new IntersectionObserver(myToolsFn, windowRect2); + +const myToolsIconsAnimated = anime({ + targets: myToolsIcons, + translateX: [-20, 0], + translateY: [-20, 0], +// rotateY: [50, 0], + opacity: [0, 1], + easing: "easeOutQuad", + duration: 1200, + delay: anime.stagger(150, {start: 200}), + loop: false, + autoplay: false, + complete: function() { myToolsIconsAnimated.remove(myToolsIcons); }, }); -uiUXLink.addEventListener("mouseout", () => { - startSteadyState = setTimeout(() => {steadyState();}, 500); - faceWrapper.style.transform = "none"; -}); +function myToolsFn(entries) { + + if(entries[0].isIntersecting) { + myToolsIconsAnimated.play(); + } + +} + + +myToolsIO.observe(myToolsParagraph); + + + + + + + + + + + +//############################################# -- Contact Form + +//var form = document.getElementById("my-form"); +// +// async function handleSubmit(event) { +// event.preventDefault(); +// var status = document.getElementById("my-form-status"); +// var data = new FormData(event.target); +// fetch(event.target.action, { +// method: form.method, +// body: data, +// headers: { +// 'Accept': 'application/json' +// } +// }).then(response => { +// status.innerHTML = "Thanks for your submission!"; +// form.reset() +// }).catch(error => { +// status.innerHTML = "Oops! There was a problem submitting your form" +// }); +// } +// form.addEventListener("submit", handleSubmit) + + + + + + + + + -//--------------------------------------------------------------------------- Web Design -webDesignLink.addEventListener("mouseover", () => { - clearTimeout(startSteadyState); - myFace.loop = false; - myFace.playSegments([210, 249], true); - faceWrapper.style.transform = "rotate3d(20,-20,0,20deg) translateZ(-50px)"; -}); -webDesignLink.addEventListener("mouseout", () => { - startSteadyState = setTimeout(() => {steadyState();}, 500); - faceWrapper.style.transform = "none"; -}); - -//--------------------------------------------------------------------------- Frontend Dev -frontentDevLink.addEventListener("mouseover", () => { - clearTimeout(startSteadyState); - myFace.loop = false; - myFace.playSegments([210, 249], true); - faceWrapper.style.transform = "rotate3d(20,-20,0,20deg) translateZ(-50px)"; -}); - -frontentDevLink.addEventListener("mouseout", () => { - startSteadyState = setTimeout(() => {steadyState();}, 500); - faceWrapper.style.transform = "none"; -}); - -//--------------------------------------------------------------------------- Graphic and Animation Design -graphicDesignLink.addEventListener("mouseover", () => { - clearTimeout(startSteadyState); - myFace.loop = false; - myFace.playSegments([210, 249], true); - faceWrapper.style.transform = "rotate3d(20,-20,0,20deg) translateZ(-50px)"; -}); - -graphicDesignLink.addEventListener("mouseout", () => { - startSteadyState = setTimeout(() => {steadyState();}, 500); - faceWrapper.style.transform = "none"; -}); - -*/ diff --git a/scripts/morphing-shape-1.json b/scripts/morphing-shape-1.json deleted file mode 100644 index feacf39..0000000 --- a/scripts/morphing-shape-1.json +++ /dev/null @@ -1 +0,0 @@ -{"v":"5.7.6","fr":30,"ip":0,"op":362,"w":200,"h":200,"nm":"Comp 1","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Shape Layer 1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[108,101.75,0],"ix":2,"l":2},"a":{"a":0,"k":[8,1.75,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.51,"y":1},"o":{"x":0.506,"y":0},"t":0,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-64.5,-75],[-11,85],[24.5,-17.5]],"c":true}]},{"i":{"x":0.438,"y":1},"o":{"x":0.53,"y":0},"t":121,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-16.5,-48.5],[-86.5,87.5],[87,-85]],"c":true}]},{"i":{"x":0.432,"y":1},"o":{"x":0.475,"y":0},"t":240,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[79,25.5],[-8,-32],[-85.5,85]],"c":true}]},{"t":361,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-64.5,-75],[-11,85],[24.5,-17.5]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":364,"st":0,"bm":0}],"markers":[]} \ No newline at end of file diff --git a/scripts/v2.js b/scripts/v2.js deleted file mode 100644 index 0523e9b..0000000 --- a/scripts/v2.js +++ /dev/null @@ -1,230 +0,0 @@ - - - - -const translate = document.querySelectorAll(".translate"); -var watermark = document.querySelector(".hero-watermark"); -//var skewedBg = document.querySelector(".skewed-bg"); - - - -window.addEventListener("scroll", () => { - - var scroll = window.pageYOffset; - - translate.forEach(element => { - let speed = element.dataset.speed; - element.style.transform = "translateY(" + (scroll * speed) + "px)"; - }); - - if(window.innerWidth < 500) { - - translate[0].style.transform = "translateY(" + (scroll * 0.1) + "px)"; - } - -// skewedBg.style.transform = "translateY(" + (scroll * skewedBg.dataset.speed) + "px) skewY(-3deg)"; - watermark.style.transform = "translateY(" + (scroll * watermark.dataset.speed) + "px) translateX(-50%)"; - -}); - - - - -window.addEventListener("load", () => { - document.getElementById("skewed-bg-block").classList.add("skewed-bg"); - document.getElementById("preloader").className = "preloader"; - document.getElementById("hero-graphic-container").className = "hero-graphic-wrapper"; - document.getElementById("hero-text-controller").className = "hero-text-block"; - document.querySelector(".hero-text-wrapper > a").classList.add("scroll-into-view-intro-2"); - document.querySelector(".hero-watermark").classList.add("scroll-into-view-intro-2"); -}); - - - - - - - -//########################################################################################################## - -var targets = document.querySelectorAll(".menu-color-change"); -var windowRect = { - rootMargin: "0px 0px -400px 0px", -// delay: 100, -// trackVisibility: true, -// thresholds: [0, 0.25, 0.5, 0.75, 1], -// threshold: [...Array(100).keys()].map(x => x / 100), -}; - -var navColors = new IntersectionObserver(navColorFunction, windowRect); - -function navColorFunction(entries, navColors) { - - entries.forEach(entry => { - if(entry.isIntersecting) { - document.querySelector("header").style.color = "white"; -// document.querySelector(".hero-graphic-controller").style.opacity = "0"; - document.querySelector(".aside-header > a").style.color = "white"; -// translate[3].dataset.speed = .2; - } else { - document.querySelector("header").style.color = "#222"; - document.querySelector(".aside-header > a").style.color = "#222"; -// document.querySelector(".hero-graphic-controller").style.opacity = "1"; - } - }); -} - -targets.forEach(entry => { - navColors.observe(entry); -}); - - - - -//########################################################################################################## - -var scrollIntoViewItems = document.querySelectorAll(".scroll-into-view"); - -var windowRect2 = { - rootMargin: "0px 0px -200px 0px", -}; -var scrollIntoView = new IntersectionObserver(function(entries) { - entries.forEach(entry => { - if(entry.isIntersecting) { - entry.target.classList.add("fade-in-bottom"); - } - }); -}, windowRect2); - - -scrollIntoViewItems.forEach(item => { - scrollIntoView.observe(item); -}); - - - - - - - -//########################################################################################################## - -//var sectionOneText = document.querySelector("#section-2"); - -var sectionOneIo = new IntersectionObserver(sect1Function, windowRect); - -function sect1Function(entries, sectionOneIo) { - -// entries.forEach(entry => { -// if(entry.isIntersecting) { -//// windowRect.thresholds = [0, 0.25, 0.5, 0.75, 1]; -//// if (windowRect.thresholds == 0.5) { -//// translate[4].dataset.speed = 1; -//// } -// -// if(window.innerWidth > 800) { -// -//// translate[4].dataset.speed = .05; -// translate[4].style.transition = "all .8s cubic-bezier( 0.39, 0.575, 0.565, 1 )"; -//// translate[4].style.position = "sticky"; -// } -// -// } else { -// if(window.innerWidth > 800) { -// translate[4].style.transition = "all .8s cubic-bezier( 0.39, 0.575, 0.565, 1 )"; -// translate[4].dataset.speed = 0; -//// setTimeout(()=> {translate[4].style.transition = "all .8s cubic-bezier( 0.39, 0.575, 0.565, 1 )";}, 1000); -// } -// } -// -//// if(entry.intersectionRatio == 0.5) { -//// translate[4].dataset.speed = 1; -//// } -//// -// }); - - if(entries[0].isIntersecting) { - - if(window.innerWidth > 800) { - - translate[3].dataset.speed = .2; - translate[3].style.transition = "all .7s cubic-bezier( 0.39, 0.575, 0.565, 1 )"; - - } else { - translate[3].dataset.speed = 0; - } - - } else { - - if(window.innerWidth > 800) { - - translate[3].dataset.speed = 0.1; - - } else { - translate[3].dataset.speed = 0; - } - - - - } -} - -sectionOneIo.observe(translate[3]); - - - - - - - - - - -//############################################################################## -- Hamburger - -document.querySelector(".hamburger-wrapper").addEventListener("click", hamburgerMenuToggle); -var logo = document.querySelector("header > a"); - -let hc = 0; - -function hamburgerMenuToggle() { - if (hc == 0) { - document.querySelector("nav").className = "nav-mobile"; - document.querySelector("#aside-heder-block").className = "aside-header-mobile"; - logo.style.color = "#222"; - document.querySelector(".aside-header-mobile > a:first-child").style.color = "#222"; - } else { - document.querySelector("nav").className = "none"; - document.querySelector("#aside-heder-block").className = "aside-header"; - logo.style.color = "inherit"; - hc = -1; - } - hc++; -} - - -window.addEventListener("resize", () => { - if(window.innerWidth > 1200) { - document.querySelector("nav").className = "none"; - document.querySelector("#aside-heder-block").className = "aside-header"; - logo.style.color = "inherit"; - hc = 0; - } -}); - - -document.querySelector(".hamburger-wrapper").onblur = () => { - document.querySelector("nav").className = "none"; - document.querySelector("#aside-heder-block").className = "aside-header"; - logo.style.color = "inherit"; - hc = 0; -} - - - - - - - - - diff --git a/scripts/v3.js b/scripts/v3.js deleted file mode 100644 index 3ae4e41..0000000 --- a/scripts/v3.js +++ /dev/null @@ -1,368 +0,0 @@ - - - - - -//############################################# -- Intro Animations - -const heroTextSection = document.querySelector(".hero-section > div:nth-child(2)"); -const myImageBlock = document.querySelector(".benjamin-image-block"); -const myBigTextBlock = document.querySelector(".benjamin-big-text-block"); -const mainTextBlock = document.querySelector(".main-text-block"); -const mainCTA = document.querySelector(".main-cta-button"); -const allHeaderElements = document.querySelectorAll("header *"); -const mountains = document.querySelectorAll("#mountains"); -const clouds = document.querySelectorAll("#clouds"); - - -function intro() { - - anime({ - targets: heroTextSection, - width: [0, "50%"], - translateX: [200, 0], - easing: "cubicBezier( 0.93, 0, 0.09, 1 )", - duration: 1500, - delay: 1000, - }); - - anime({ - targets: allHeaderElements, - translateX: [-20, 0], -// rotateY: [50, 0], - opacity: [0, 1], - easing: "easeOutQuad", - duration: 800, - delay: anime.stagger(100, {start: 1000}/* , {easing: 'easeOutQuad'} */), - }); - - anime({ - targets: myBigTextBlock, - translateY: [100, 0], - opacity: [0, 1], - easing: "cubicBezier( 0.1, 0.63, 0.355, 1 )", - duration: 1200, - delay: 2000, - }); - - anime({ - targets: myImageBlock, - translateY: [100, 0], - opacity: [0, 0.8], - easing: "cubicBezier( 0.1, 0.63, 0.355, 1 )", - duration: 1500, - delay: 2200, - }); - - anime({ - targets: mainTextBlock, - translateX: [-50, 0], - opacity: [0, 1], - easing: "cubicBezier( 0.1, 0.63, 0.355, 1 )", - duration: 1200, - delay: 2500, - }); - - anime({ - targets: mainCTA, - translateX: [-50, 0], - opacity: [0, 1], - easing: "cubicBezier( 0.1, 0.63, 0.355, 1 )", - duration: 1200, - delay: 2600, - }); - - anime({ - targets: mountains, - translateY: [200, 0], - opacity: [0, 1], - easing: "cubicBezier(0.1, 0.63, 0.355, 1)", - duration: 1500, - delay: 1000, - }); - - anime({ - targets: clouds, - opacity: [0.2, 1], - easing: "easeOutQuad", - duration: 1200, - delay: 800, - }); - -} - -// Intro Initialization - -function introInit() { - - anime({ - targets: heroTextSection, - width: [0], - translateX: 200, - duration: 0 - }); - - anime({ - targets: allHeaderElements, - translateX: [-20], - opacity: [0], - duration: 0 - }); - - anime({ - targets: myBigTextBlock, - translateY: [100], - opacity: [0], - duration: 0 - }); - - anime({ - targets: myImageBlock, - translateY: [100], - opacity: [0], - duration: 0 - }); - - anime({ - targets: mainTextBlock, - translateX: [-50], - opacity: [0], - duration: 0 - }); - - anime({ - targets: mainCTA, - translateX: [-50], - opacity: [0], - duration: 0 - }); - - anime({ - targets: mountains, - opacity: 0, - duration: 0 - }); - -} - -introInit(); - - - - - -//############################################# -- Header Scroll interactions - -var headerController = document.querySelector("#header-controller"); -var windowRect = { - rootMargin: "0px", -}; - -var headerObserver = new IntersectionObserver(changeHeader, windowRect); - -function changeHeader(entry) { - - if(entry[0].isIntersecting) { - document.querySelector("header").className = "none"; - anime({ - targets: "header img", - width: 40, - height: 100, - top: 0, - duration: 400, - easing: "easeOutCubic", - }); - - anime({ - targets: "header > a > div", - translateX: 0, - opacity: 1, - duration: 1000, - }); - - } else { - document.querySelector("header").classList.add("scrolled"); - anime({ - targets: "header img", - width: 60, - height: 130, - top: 20, - duration: 400, - easing: "easeOutCubic", - }); - - anime({ - targets: "header > a > div", - translateX: -50, - opacity: 0, - duration: 1000, - }); - } -} - - - - -//############################################# -- Window Load - -setTimeout(() => { - headerObserver.observe(headerController); -}, 3000); - - -window.addEventListener("load", () => { - setTimeout(() => {intro();}, 1000); - -}); - - - - - - - -//############################################# -- Secitons intersection Observer - -var sections = document.querySelectorAll(".scroll-into-view"); -//var sectionContainer = document.querySelector(".my-work-section > div:nth-child(2)"); - -var windowRect2 = { - rootMargin: "0px 0px -200px 0px", -}; - -var sectionsIO = new IntersectionObserver(sectionsObserverFn, windowRect2); - -function sectionsObserverFn(entries) { - - entries.forEach(entry => { - if(entry.isIntersecting) { - entry.target.classList.add("scrolled-into-view"); - -// anime({ -// targets: contents[entry.target.firstElementChild], -// width: [0, "50%"], -// easing: "cubicBezier( 0.93, 0, 0.09, 1 )", -// opacity: [0, 1], -// duration: 1200, -// }); - } - }); - -} - - - -sections.forEach(item => { - sectionsIO.observe(item); -}); - - - -//############################################# -- Content intersection Observer - -const contents = document.querySelectorAll(".scroll-into-view-content"); - -const contentsIO = new IntersectionObserver(contentsObserverFn, windowRect2); - -function contentsObserverFn(entries) { - - entries.forEach(entry => { - if(entry.isIntersecting) { - entry.target.classList.add("scrolled-into-view-content"); - } - }); - -} - - - -contents.forEach(item => { - contentsIO.observe(item); -}); - - - - -const myToolsIcons = document.querySelectorAll(".my-specialties-section > div > div"); -const myToolsHeader = document.querySelectorAll(".my-specialties-section h2"); -const myToolsParagraph = document.querySelector(".my-specialties-section p"); - -let myToolsIO = new IntersectionObserver(myToolsFn, windowRect2); - -const myToolsIconsAnimated = anime({ - targets: myToolsIcons, - translateX: [-20, 0], - translateY: [-20, 0], -// rotateY: [50, 0], - opacity: [0, 1], - easing: "easeOutQuad", - duration: 1200, - delay: anime.stagger(150, {start: 200}), - loop: false, - autoplay: false, - complete: function() { myToolsIconsAnimated.remove(myToolsIcons); }, -}); - -function myToolsFn(entries) { - - if(entries[0].isIntersecting) { - myToolsIconsAnimated.play(); - } - -} - - -myToolsIO.observe(myToolsParagraph); - - - - - - - - - - - -//############################################# -- Contact Form - -//var form = document.getElementById("my-form"); -// -// async function handleSubmit(event) { -// event.preventDefault(); -// var status = document.getElementById("my-form-status"); -// var data = new FormData(event.target); -// fetch(event.target.action, { -// method: form.method, -// body: data, -// headers: { -// 'Accept': 'application/json' -// } -// }).then(response => { -// status.innerHTML = "Thanks for your submission!"; -// form.reset() -// }).catch(error => { -// status.innerHTML = "Oops! There was a problem submitting your form" -// }); -// } -// form.addEventListener("submit", handleSubmit) - - - - - - - - - - - - - - - - - - - - diff --git a/scripts/wavy-line.json b/scripts/wavy-line.json deleted file mode 100644 index cefebb0..0000000 --- a/scripts/wavy-line.json +++ /dev/null @@ -1 +0,0 @@ -{"v":"5.7.6","fr":30,"ip":0,"op":182,"w":1440,"h":300,"nm":"Comp 1","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Shape Layer 1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[732,83.933,0],"ix":2,"l":2},"a":{"a":0,"k":[12,173.933,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.406,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[{"i":[[0,0],[-220.336,0],[-276.265,-22.751],[0,0]],"o":[[0,0],[278,0],[340,28],[0,0]],"v":[[-740,270],[-352,208],[320,280],[762,220]],"c":false}]},{"i":{"x":0.667,"y":1},"o":{"x":0.497,"y":0},"t":90,"s":[{"i":[[0,0],[-220.28,-4.969],[-254.604,-13.3],[0,0]],"o":[[0,0],[266,6],[268,14],[0,0]],"v":[[-780,216],[-334,268],[348,228],[776,284]],"c":false}]},{"t":182,"s":[{"i":[[0,0],[-220.336,0],[-276.265,-22.751],[0,0]],"o":[[0,0],[278,0],[340,28],[0,0]],"v":[[-740,270],[-352,208],[320,280],[762,220]],"c":false}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":2,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":182,"st":0,"bm":0}],"markers":[]} \ No newline at end of file diff --git a/v2.css b/v2.css deleted file mode 100644 index c4d5d00..0000000 --- a/v2.css +++ /dev/null @@ -1,1459 +0,0 @@ -html { - width: 100%; - overflow-x: hidden; - font-display: swap; - scroll-behavior: smooth; -} - -* { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - font-family: Lato, Helvetica; - font-display: swap; - font-size: 18px; - line-height: 1.5; - color: #222; - position: relative; -} - -:root { - --main-color: #E14646; - --base-color: #222; -} - - -/*................................................... Body */ - -body { - width: 100%; - margin: 0px; - overflow: hidden; - display: flex; - flex-direction: column; - align-items: center; - /*background-color: #B8FFE1;*/ -} - -header { - position: fixed; - left: 40px; - top: 40px; - width: 200px; - z-index: 1000; - color: inherit; -} - -header > a { - font-family: "Squada One"; - font-size: 36px; - text-transform: uppercase; - border: none; - letter-spacing: -1px; - color: inherit; - position: relative; - z-index: 100; - line-height: 36px; -} - -nav { - margin-top: 20px; - display: flex; - flex-direction: column; - align-items: flex-start; - color: inherit; -} - -nav > a { - margin-bottom: 10px; - font-size: 16px; - color: inherit; - font-weight: 600; -} - -nav > a:hover { - color: #E14646; -} - -section { - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - padding: 60px 40px; - position: relative; - width: 100%; - perspective: 500px; -} - -section > div { - width: 960px; - display: flex; - justify-content: center; - perspective: 500px; - transform-style: preserve-3d; -} - -section > div > div{ - flex-grow: 1; - width: 50%; - display: flex; - flex-direction: column; -} - -section > div > div > p{ - width: 350px; - color: inherit; -} - - - - -/* -div { - display: flex; - position: relative; - align-items: center; - justify-content: center; - font-size: inherit; - color: inherit; -} -*/ - - - -/*................................................... Text */ - -a { - text-decoration: none; - color: #222222; - border-bottom: 2px solid transparent; - cursor: pointer; - font-size: inherit; - transition: all .3s ease-out; -} - -a:hover { - border-bottom: 2px solid #E14646; -} - -h1, h2, h3, h4 { - font-family: "Squada One"; - margin-top: 0px; - margin-bottom: 15px; - width: 100%; - line-height: 1.2; - color: inherit; - text-transform: uppercase; - letter-spacing: 1px; - font-weight: normal; -} - -h1 { - - font-size: 42px; -} - -h2 { - font-size: 36px; -} - -h3 { - -} - -h4 { - font-family: "Lato"; - text-transform: none; - width: auto; -} - -p { - font-size: 20px; - line-height: 1.5; - margin-top: 0px; - margin-bottom: 20px; - color: rgba(0,0,0,0.6); - width: 100%; - font-weight: 400; -} - -span { - font-size: inherit; - font-weight: inherit; - font-family: inherit; - color: inherit; - letter-spacing: inherit; - line-height: inherit; -} - -span > a { - font-size: inherit; - font-weight: inherit; - font-family: inherit; - color: inherit; - letter-spacing: inherit; - line-height: inherit; - border: inherit; - border-color: inherit; -} - -span > a:hover { - border: inherit; - border-color: inherit; -} - - - - -/*................................................... Interactives */ - -button { - border: none; - background-color: black; - padding: 10px 20px; - color: white; - cursor: pointer; -} - -button:hover { - background-color: darkblue; -} - -input, textarea { - padding: 15px; - border-radius: 5px; - border: 1px solid rgba(0,0,0,0.2); - margin-bottom: 15px; - width: 100%; - font-size: 14px; -} - -input:focus { - border: 1px solid blue; - box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.2); -} - - - - - - - - - - - - - - - -/*############################################################# -- General classes and IDs -- */ - -.nav-mobile { - -} - -.preloader-init { - position: fixed; - width: 100vw; - height: 100vh; - background-color: var(--main-color); - bottom: 0; - left: 0; - z-index: 2000; -} - -.preloader { - position: fixed; - width: 100vw; - height: 100vh; - background-color: var(--main-color); - bottom: 0; - left: 0; - z-index: 2000; - animation: preloaderexit 1s; - animation-fill-mode: both; - animation-delay: 1s; - animation-timing-function: cubic-bezier( 0.215, 0.61, 0.355, 1 ); -} - -@keyframes preloaderexit { - 0%{display: none; transform: none; opacity: 1; height: 100vh;} - 99%{transform: skewY(-3deg); opacity: 1; height: 0px; bottom: -200px;} - 100%{display: none; transform: skewY(-3deg); opacity: 0; height: 0px;} -} - -.aside-header { - position: fixed; - top: 40px; - right: 40px; - display: flex; - flex-direction: column; - align-items: flex-end; - z-index: 1000; -} - -.aside-header-mobile { - position: fixed; - top: 40px; - right: 40px; - display: none; - flex-direction: column; - align-items: flex-end; - z-index: 1000; -} - -.aside-header > a { - font-size: 14px; - display: flex; - align-items: center; - padding: 5px; - transition: all .3s ease-out; - position: relative; -} - -.email-link-block { - width: 40px; - height: 40px; - border-radius: 20px; - background-color: var(--main-color); - margin-top: 10px; - color: white; - border: none; - justify-content: flex-start; - padding: 10px; -} - -.email-link-block > div:first-child { - width: 100%; - height: 100%; - overflow: hidden; - color: inherit; - display: flex; - align-items: center; - font-size: inherit; -} - -.email-link-block:hover { - background-color: #222; - border: none; - width: 180px; -} - -.aside-mail-anim { - position: absolute; - width: 140%; - height: 140%; - background-color: var(--main-color); - opacity: .2; - border-radius: 50%; - top: 50%; - left: 50%; - transform: translate(-50%,-50%); - z-index: -100; - animation: asidecta 2s infinite; - pointer-events: none; -} - -@keyframes asidecta { - 0% {width: 20px; height: 20px; opacity: .5;} - 100% {width: 80px; height: 80px; opacity: 0;} -} - -.social-media-link-block { - width: 40px; - height: 40px; - display: flex; - align-items: center; - justify-content: center; - border-radius: 50%; - background-color: var(--main-color); - margin-top: 10px; -} - -.hamburger-wrapper { - position: fixed; - top: 20px; - right: 20px; - width: 40px; - height: 40px; - background-color: var(--main-color); - padding: 12px 10px; - display: none; - flex-direction: column; - align-content: center; - justify-content: space-between; - cursor: pointer; - z-index: 1000; - border-radius: 5px; -} - -.hamburger-line { - width: 100%; - height: 2px; - background-color: white; -} - -.hamburger-show { - display: flex; - animation: hamburgershow 1s; - animation-fill-mode: both; - animation-timing-function: cubic-bezier( 0.215, 0.61, 0.355, 1 ); -} - -@keyframes hamburgershow { - 0% {display: flex; opacity: 0; left: -100px;} - 100% {display: flex; opacity: 1;left: 0;} -} - - - - - -/* ################################################### Body*/ - -.hero-section { - z-index: 1; -} - -.hero-graphic-wrapper-init { - width: 400px; - height: 600px; - display: flex; - flex-direction: column; - align-items: center; - margin-right: -20px; - opacity: 0; -} - -/* -#hero-graphic-container { - opacity: 0; -} -*/ - -.hero-graphic-wrapper { - width: 400px; - height: 600px; - display: flex; - flex-direction: column; - align-items: center; - margin-right: -20px; - animation: herographicintro 1.3s; - animation-delay: 1.6s; - animation-timing-function: cubic-bezier( 0.215, 0.61, 0.355, 1 ); - transition: all .8s cubic-bezier( 0.39, 0.575, 0.565, 1 ); - opacity: 0; - animation-fill-mode: both; -} - -@keyframes herographicintro { - 0% {transform: translateY(100px) rotateX(5deg); opacity: 0;} - 100% {transform: none; opacity: 1;} -} - -#benjamin-hero-text { - background-image: url("images/art-logo-4.svg"); - background-position: center; - background-size: contain; - background-repeat: no-repeat; - width: 100%; - height: 250px; -} - -#toby-hero-text { - font-family: "Squada One"; - font-size: 205px; - text-transform: uppercase; - letter-spacing: 0px; - color: var(--main-color); - line-height: 1; - margin-top: -63px; -} - -.hero-graphic-block { - width: 350px; - height: 300px; - background-color: var(--main-color); - border-radius: 20px; - margin-top: -35px; - display: flex; - align-items: center; - justify-content: center; -} - -.hero-graphic-block > img { - position: relative; - top: -40px; - width: 400px; -} - -.hero-text-wrapper { - width: 350px; - padding-top: 50px; - align-items: flex-start; - margin-left: 50px; -} - -.hero-text-wrapper > a { - background-color: #393051; - color: white; - padding: 10px 20px; - border-radius: 5px; - border: none; - transition: all .3s ease; - opacity: 0; -} - -.hero-text-wrapper > a:hover { - background-color: #393051; - padding: 12px 23px; -} - -.scroll-down-link-block { - position: absolute; - background-color: white; - color: #222; - font-size: 36px; - font-weight: 700; - top: 480px; - right: 30vw; - display: flex; - align-items: center; - justify-content: center; - width: 70px; - height: 80px; - border-radius: 10px; - padding-top: 20px; - cursor: pointer; - z-index: 100; -} - -.scroll-link-icon { - transform: rotate(90deg); - font-size: inherit; - font-weight: inherit; - display: flex; - align-items: center; - justify-content: center; - padding: 0; - margin: 0; - text-align: center; - line-height: 1; - left: 3px; -} - -.hero-text-block-init { - font-size: 36px; - font-weight: 500; - margin-bottom: 40px; - opacity: 0; -} - -.hero-text-block { - font-size: 36px; - font-weight: 500; - margin-bottom: 40px; - animation: herotextintro 1.2s; - animation-fill-mode: both; - animation-delay: 1.8s; - animation-timing-function: cubic-bezier( 0.39, 0.575, 0.565, 1 ); -} - -@keyframes herotextintro { - 0% {transform: translateY(50px) rotateX(5deg); opacity: 0;} - 100% {transform: none; opacity: 1;} -} - -.hero-text-block > h1 { - font-size: inherit; - color: var(--base-color); - display: inline; - font-weight: 600; - text-transform: none; -} - -.hero-text-block > h1 > span { - font-size: inherit; - color: var(--main-color); - display: inline; - font-weight: inherit; - border-bottom: 2px solid var(--main-color); - cursor: pointer; - transition: all .3s ease; -} - -.hero-text-block > h1 > span:hover { - padding: 5px 10px; - background-color: black; - color: white; - border-color: #393051; -} - -.hero-watermark { - position: absolute; - font-size: 40em; - font-family: "Squada One"; - z-index: -1; - top: -20px; - color: rgba(0,0,0,0.05); - letter-spacing: -5px; - white-space: nowrap; -} - -.below-fold { - background-color: var(--main-color); - padding-top: 200px; - padding-bottom: 200px; -} - -.skewed-bg { - position: absolute; - width: 100%; - height: 400px; - transform: skewY(-3deg); - background-color: var(--main-color); - top: -200px; - z-index: -1; - animation: skewintro 1.2s; - animation-fill-mode: both; - animation-delay: 1s; - animation-timing-function: cubic-bezier( 0.39, 0.575, 0.565, 1 ); - perspective: none; - transform-style: flat; -} - -@keyframes skewintro { - 0%{transform: none; top: 0; width: 100%;} - 100%{transform: skewY(-3deg); top: -200px; width: 100%;} -} - -#my-work-text-section { - perspective: 500px; - transform-style: preserve-3d; -/* - position: sticky; - top: 0px; -*/ -} - -.container { - color: #222; - display: flex; - align-items: flex-end; - text-align: right; - position: relative; - z-index: 10; -} - -.container-darkbg { - color: white; - display: flex; - align-items: flex-end; - text-align: right; - position: relative; - z-index: 10; -} - -.right-column { - display: flex; - flex-direction: column; - align-items: flex-start; - position: relative; - z-index: 10; -} - -.section-watermark { - font-family: "Squada One"; - position: absolute; - color: rgba(0,0,0,0.05); - font-size: 15em; - top: -350px; - left: auto; - right: auto; - text-align: center; - display: flex; - align-items: center; - justify-content: center; - z-index: 0; -} - -.portfolio-item { - margin-left: 100px; - margin-bottom: 20px; - color: white; - display: flex; - flex-direction: column; - align-items: flex-end; - transition: all .5s ease-out; - border: none; -} - -.portfolio-item:hover { - border: none; -} - -.portfolio-item:first-child { - margin-top: -100px; -} - -.portfolio-item:last-child { - margin-bottom: -300px; - color: #222; -} - -.portfolio-item > h4 { - transition: all .5s ease-out; - border-bottom: 2px solid transparent; -} - -.portfolio-item > div { - width: 350px; - height: 250px; - background-color: #222; - border-radius: 10px; - margin-bottom: 10px; - background-size: cover; - background-repeat: no-repeat; - background-position: center; - transition: all .3s ease-out; - overflow: hidden; - display: flex; - align-items: center; - justify-content: center; - position: relative; -} - -.portfolio-item img { - position: absolute; - width: 100%; - transition: all .4s ease-out; -} - -.portfolio-item:hover img { - width: 110%; - transform: rotate(5deg); - filter: brightness(105%); -} - -.portfolio-item:hover > h4 { - border-bottom: 2px solid white; -} -.portfolio-item:hover > div { - box-shadow: 0px 0px 35px -5px rgba(0,0,0,0.4); - background-size: 120%; -} - -.portfolio-item:last-child:hover > h4 { - border-bottom: 2px solid var(--main-color); -} - -.about-me-img-block { - width: 300px; - height: 500px; - background-color: aqua; - margin: -50px 80px 0px 0px; - border-radius: 20px; - background-image: url("images/portfolio-item-1.jpg"); - background-size: cover; -} - - - - - - - - - - - - - - - -/* ################################################### Animations*/ - -.translate { - transition: all .4s cubic-bezier( 0.39, 0.575, 0.565, 1 ); -} - -.fade-in-bottom { - animation: fadeinbottom 1s; - animation-fill-mode: both; - animation-timing-function: cubic-bezier( 0.39, 0.575, 0.565, 1 ); -} - -@keyframes fadeinbottom { - 0% {transform: translateY(100px) rotateX(5deg); opacity: 0; pointer-events: none;} - 99% {transform: none; opacity: 1; pointer-events: none;} - 100% {transform: none; opacity: 1; pointer-events: auto;} -} - -.scroll-into-view { - opacity: 0; -} - -.scroll-into-view-intro { - opacity: 0; - animation: fadeinbottom 1s; - animation-fill-mode: both; - animation-timing-function: cubic-bezier( 0.39, 0.575, 0.565, 1 ); - animation-delay: 1.5s; -} - -.scroll-into-view-intro-2 { - opacity: 0; - animation: fadeinbottom 1s; - animation-fill-mode: both; - animation-timing-function: cubic-bezier( 0.39, 0.575, 0.565, 1 ); - animation-delay: 2s; -} - - - - - - - - - - - - - - - - - - - - - -/*.................................................................................................................. Mobile Styles */ - -@media (max-width: 1200px) { - - header { - left: 20px; - top: 20px; - width: 200px; - z-index: 1000; - color: inherit; - } - - header > a { - margin: 0; - } - - nav { - margin-top: 10px; - display: none; - } - - .nav-mobile { - position: fixed; - top: 0; - left: 0; - flex-direction: column; - align-items: center; - margin-top: 0; - display: flex; - background-color: white; - padding: 80px 20px 140px 20px; - width: 100vw; - height: 400px; - box-shadow: 0 0 40px -10px rgba(0,0,0,0.2); - border-radius: 5px; - color: #222; - text-align: center; - animation: hamburgershow .5s; - animation-fill-mode: both; - animation-timing-function: cubic-bezier( 0.215, 0.61, 0.355, 1 ); - } - - .nav-mobile > a { - text-align: center; - } - - nav > a { - margin-bottom: 8px; - } - - .aside-header { - display: none; - } - - .aside-header-mobile { - position: fixed; - top: 240px; - right: auto; - left: 0; - display: flex; - align-items: center; - padding: 20px 0 0 0; - border-top: 1px solid #ddd; - flex-direction: column; - z-index: 1000; - width: 100%; - animation: hamburgershow .5s; - animation-fill-mode: both; - animation-timing-function: cubic-bezier( 0.215, 0.61, 0.355, 1 ); - animation-delay: .1s; - } - - .aside-header-mobile > a { - display: flex; - align-items: center; - padding: 5px; - transition: all .3s ease-out; - position: relative; - text-align: center; - } - - .aside-header-mobile > a:first-child { - color: #222; - } - - .hamburger-wrapper { - display: flex; - } - -} - - - - - -@media (max-width: 800px) { - - - - section { - padding: 60px 30px; - margin: 0; - position: relative; - } - - section > div { - width: 100%; - display: flex; - flex-direction: column; - justify-content: flex-start; - align-items: flex-start; - } - - section > div.mobile-flip { - flex-direction: column-reverse; - } - - section > div > div{ - flex-grow: 1; - width: 100%; - flex-direction: column; - align-items: flex-start; - justify-content: flex-start; - } - - section > div > div > p{ - width: 100%; - } - - - - /*................................................... Text */ - - a { - - } - - h1 { - font-size: 36px; - } - - h2 { - font-size: 30px; - } - - h3 { - - } - - h4 { - - } - - p { - font-size: 16px; - } - - - - - - /*###################################*/ - - .hero-section { - padding: 60px 40px 40px 40px; - } - - .hero-container { - flex-direction: row; - padding: 0; - } - - .hero-graphic-wrapper-init { - width: 50%; - height: 600px; - margin-right: none; - margin-left: -20px; - } - - .hero-graphic-wrapper { - width: 300px; - height: 300px; - margin-right: none; - margin-left: -20px; - margin-top: 50px; - margin-bottom: 100px; - } - - #benjamin-hero-text { - margin-bottom: 10px; - width: 100%; - height: 180px; - } - - .hero-graphic-block { - width: 100%; - height: 250px; - margin-top: -25px; - } - - .hero-graphic-block > img { - width: 300px; - top: -20px; - } - - .hero-text-wrapper { - width: 60%; - padding-top: 40px; - margin-left: 40px; - min-width: 250px; - max-height: 300px; - } - - .scroll-down-link-block { - top: 520px; - right: auto; - width: 70px; - height: 80px; - background-color: transparent; - } - - .scroll-link-icon { - color: white; - } - - .hero-text-block-init { - font-size: 36px; - font-weight: 500; - margin-bottom: 40px; - opacity: 0; - } - - .hero-text-block { - font-size: 30px; - margin-bottom: 20px; - } - - .hero-text-block > h1 { - - } - - .hero-text-block > h1 > span { - - } - - .hero-text-block > h1 > span:hover { - padding: 3px 7px; - } - - .hero-watermark { - font-size: 60vw; - line-height: 10px; - top: 25vw; - } - - .below-fold { - padding-top: 150px; - padding-bottom: 100px; - margin: 0; - } - - .skewed-bg { - height: 200px; - margin-top: 130px; - top: 0; - } - - section > div.container { - flex-direction: column; - align-items: flex-start; - justify-content: flex-start; - text-align: left; - width: 100%; - color: #222; - transform: none; - margin: 0; - top: 0; - } - - .container-darkbg { - flex-direction: column; - align-items: flex-start; - justify-content: flex-start; - text-align: left; - width: 100%; - transform: none; - margin-bottom: 40px; - } - - .right-column { - justify-content: flex-start; - width: 100%; - transform: none; - margin-bottom: 40px; - } - - .section-watermark { - font-size: 30vw; - top: -250px; - left: auto; - right: auto; - } - - .portfolio-item { - margin-left: 0; - top: 0; - margin-bottom: 20px; - color: white; - display: flex; - flex-direction: column; - width: 100%; - align-items: flex-start; - justify-content: flex-start; - } - - .portfolio-item:hover { - border: none; - } - - .portfolio-item:first-child { - margin-top: 0px; - top: 0; - } - - .portfolio-item:last-child { - - } - - .portfolio-item > div { - width: 100%; - height: 350px; - } - - .portfolio-item img { - - } - - .about-me-img-block { - width: 80%; - height: 500px; - margin: 0; - align-self: center; - } - -} - - - - - -@media (max-width: 600px) { - - header { - - } - - - - /*###################################*/ - - .hero-section { - padding: 100px 20px 0px 20px; - } - - .hero-container { - flex-direction: row; - padding: 0; - } - - .hero-graphic-wrapper-init { - width: 50%; - height: 600px; - margin-right: none; - margin-left: -20px; - } - - .hero-graphic-wrapper { - width: 200px; - height: 600px; - margin-left: 0px; - margin-bottom: -40px; - top: 0; - margin-top: 0; - justify-content: flex-start; - align-items: center; - display: flex; - } - - #benjamin-hero-text { - margin: 0 0 -10px 0; - width: 220px; - height: 180px; - align-self: center; - left: 12px; - right: 0; - } - - .hero-graphic-block { - width: 250px; - height: 200px; - margin-top: -25px; - } - - .hero-graphic-block > img { - position: absolute; - width: 300px; - top: -100px; - margin: 0; - } - - .hero-text-wrapper { - width: 50%; - min-width: 220px; - padding-top: 20px; - margin-left: 60px; - } - - .hero-text-wrapper > a { - font-size: 14px; - } - - .scroll-down-link-block { - top: 420px; - right: auto; - width: 70px; - height: 80px; - background-color: transparent; - } - - .scroll-link-icon { - color: white; - } - - .hero-text-block-init { - font-size: 24px; - margin-bottom: 20px; - line-height: 1; - } - - .hero-text-block { - font-size: 24px; - margin-bottom: 20px; - line-height: 1; - } - - .hero-text-block > h1 { - - } - - .hero-text-block > h1 > span { - - } - - .hero-text-block > h1 > span:hover { - padding: 3px 7px; - } - - .hero-watermark { - top: 60vw; - } - - .below-fold { - padding-top: 100px; - padding-bottom: 100px; - } - - .skewed-bg { - height: 400px; - margin-top: -50px; - } - - .section-watermark { - font-size: 30vw; - top: -200px; - left: auto; - right: auto; - } - - .portfolio-item > div { - width: 100%; - height: 250px; - } - - .portfolio-item img { - - } - - .about-me-img-block { - width: 100%; - height: 500px; - margin: 0; - } - -} - - - - - -@media (max-width: 430px) { - - - /*###################################*/ - - .hero-section { - padding: 60px 20px 0px 20px; - } - - .hero-container { - flex-direction: column; - } - - .hero-graphic-wrapper-init { - width: 100%; - height: 600px; - margin-right: none; - margin-left: -20px; - } - - .hero-graphic-wrapper { - width: 80%; - position: relative; - height: auto; - margin: 0; - top: 0; - justify-content: flex-start; - align-self: center; - } - - #benjamin-hero-text { - margin-bottom: -50px; - width: 100%; - height: 250px; - left: auto; - right: auto; - } - - .hero-graphic-block { - width: 250px; - height: 250px; - margin-top: -25px; - } - - .hero-graphic-block > img { - width: 280px; - position: absolute; - } - - .hero-text-wrapper { - width: 100%; - padding-top: 20px; - margin-left: 0; - margin-bottom: 250px; - margin-top: -10px; - position: relative; - } - - .scroll-down-link-block { - top: 750px; - } - - .hero-watermark { - top: 400px; - } - - .below-fold { - padding-top: 100px; - padding-bottom: 100px; - margin: 0; - } - - .skewed-bg { - height: 400px; - margin-top: -60px; - } - - .section-watermark { - font-size: 30vw; - top: -200px; - left: auto; - right: auto; - } - - .portfolio-item > div { - width: 100%; - height: 250px; - } - - .portfolio-item img { - - } - - .about-me-img-block { - width: 100%; - height: 500px; - margin: 0; - } - - -} - - - - - - -@media (max-width: 350px) { - - - -} - - - - - - - - - - - - - - - diff --git a/v2.html b/v2.html deleted file mode 100644 index fb134a7..0000000 --- a/v2.html +++ /dev/null @@ -1,184 +0,0 @@ - - - - - - - - - - Tben Design - - - - - - - - - - - - - - - - - -
- - - - - - - -
- Tben.Design - -
- - -
- face  My Resume - -
- mail -    Get in touch with me -
- -
-
-
- - -
-
-
-
- - - - - - - - -
-
-
-
-
-
- -
-
-
- - -
-
- - - - - - - - -
T-BEN
- - - - - - - - - - - - - - - - - - - - - -
-
-
-
-
- -
-

A little about Me

-

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Quis ipsum suspendisse ultrices gravida. Risus commodo viverra maecenas accumsan lacus vel facilisis.

-
- -
About Me
-
-
- - -
- - - - - - - - - - - - - - \ No newline at end of file diff --git a/v3.css b/v3.css deleted file mode 100644 index a54e7b7..0000000 --- a/v3.css +++ /dev/null @@ -1,645 +0,0 @@ -html { - width: 100%; - overflow-x: hidden; - font-display: swap; - scroll-behavior: smooth; -} - -* { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - font-family: "Poppins", Helvetica; - font-display: swap; - font-size: 18px; - line-height: 1.5; - color: #222; - position: relative; -/* - animation-timing-function: linear; - transition-timing-function: linear; -*/ -} - -:root { - --main-color: #747bef; - --base-color: #222; - --sec-color-1: #ed7d71; - --sec-color-2: #faa096; - --sec-color-3: #75F0E6; - --dark-color: #1c3766; -} - - -/*................................................... Body */ - -body { - width: 100%; - margin: 0px; - overflow: hidden; - display: flex; - flex-direction: column; - align-items: center; -} - -header { - position: fixed; - left: 0; - top: 0; - width: 100%; - z-index: 1000; - padding: 40px; - display: flex; - align-items: center; - justify-content: space-between; - height: 140px; - overflow: hidden; - perspective: 500; - transition: all .3s ease; -} - -header * { -/* transition: all .5s ease;*/ -} - -header.scrolled { - padding: 20px; - background-color: white; -/* box-shadow: 0px 0px 20px -5px rgba(0,0,0,0.4);*/ - height: 80px; -} - -#header-controller { - position: absolute; - width: 100%; - height: 15vh; - top: 0; - left: 0; - background: lightgray; -} - -header img { - width: 40px; - margin-right: 10px; -/* transition: all .3s ease;*/ - position: relative; - top: 0; -} - -header > a { - font-family: "Poppins"; - border: none; - color: inherit; - display: flex; - align-items: center; - font-weight: 900; - position: relative; - perspective: 500px; - transform-style: preserve-3d; -} - -header > a > div { - line-height: 16px; - font-size: 24px; - color: var(--dark-color); -/* transition: all .3s ease;*/ -} - -nav { - display: flex; - align-items: center; - color: inherit; -} - -nav > a:not(.social-media-links) { - font-size: 16px; - font-weight: 500; - padding: 10px 15px; - background-size: 100%; - background-repeat: no-repeat; - background-position: -200px 41px; - background-image: linear-gradient(90deg, var(--main-color), var(--sec-color-1)); - color: inherit; - transition: background .3s ease; -} - -nav > a:not(.social-media-links):hover { - color: var(--sec-color-1); - background-position: 0px 41px; -} - -section { - display: flex; - position: relative; - width: 100%; - perspective: 500px; - padding: 0; - margin: 0; - height: 100vh; - overflow: hidden; - align-items: stretch; -} - -section > div { - width: 50%; - display: flex; - flex-direction: column; - align-items: flex-start; - justify-content: center; - perspective: 500px; - transform-style: preserve-3d; - padding: 15%; - position: relative; -} - -section > div p{ - width: 350px; - color: inherit; -} - - - - - - -/*############################################# -- Text */ - -a { - text-decoration: none; - color: var(--dark-color); - border: none; - cursor: pointer; - font-size: inherit; -/* transition: all .3s ease-out;*/ -} - -a:hover { - border: none; -} - -h1, h2, h3, h4 { - font-family: "Poppins"; - margin-top: 0px; - margin-bottom: 15px; - width: 100%; - line-height: 1.2; - color: inherit; - font-weight: 700; -} - -h1 { - - font-size: 42px; -} - -h2 { - font-size: 32px; - width: auto; -} - -h3 { - -} - -h4 { - -} - -p { - font-size: 20px; - line-height: 1.5; - margin-top: 0px; - margin-bottom: 20px; - width: 100%; - font-weight: 400; -} - -span { - font-size: inherit; - font-weight: inherit; - font-family: inherit; - color: inherit; - letter-spacing: inherit; - line-height: inherit; -} - -span > a { - font-size: inherit; - font-weight: inherit; - font-family: inherit; - color: inherit; - letter-spacing: inherit; - line-height: inherit; - border: inherit; - border-color: inherit; -} - -span > a:hover { - border: inherit; - border-color: inherit; -} - - - - -/*###################################################### -- Interactives */ - -button { - border: none; - background-color: var(--dark-color); - padding: 10px 20px; - color: white; - cursor: pointer; - background-image: linear-gradient(var(--main-color),var(--main-color)); - background-repeat: no-repeat; - background-position: 0px 67px; -} - -button:hover { - background-position: 0px 0px; -} - -input, textarea { - padding: 15px; - border-radius: 5px; - border: 1px solid rgba(0,0,0,0.2); - margin-bottom: 15px; - width: 100%; - font-size: 14px; -} - -input:focus { - border: 1px solid blue; - box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.2); -} - - - - - - - - - - - - - - - -/*############################################################# -- General classes and IDs -- */ - - - -.social-media-links { - width: 40px; - height: 40px; - border-radius: 50%; - margin: 5px; - display: flex; - align-items: center; - justify-content: center; - color: white; - font-size: 18px; - background-color: var(--sec-color-1); -} - -#mail { - background-color: var(--sec-color-2); -} - -#linkedin { - background-color: var(--main-color); -} - -#behance { - background-color: var(--dark-color); - margin-right: 0; -} - -.scroll-into-view { - padding: 0; - width: 0; - transition: all .7s cubic-bezier(0.93, 0, 0.09, 1); -} - -.scrolled-into-view { - width: 50%; - padding: 40px; -} - -.scroll-into-view-content { - transform: translateY(80px) rotateX(5deg); - transition: all 1s cubic-bezier(0.1, 0.63, 0.355, 1); - opacity: 0; -} - -.scrolled-into-view-content { - transform: none; - opacity: 1; -} - - - - - - - - - -/*############################################################# -- Hero -- */ - -.hero-section { - background-color: #1b239b; - justify-content: space-between; -} - -.hero-section > div:nth-child(1) { -} - -.hero-section > div:nth-child(2) { - background-color: white; - padding: 25vh 40px 40px 6.2vw; - font-size: 2.5vw; - display: inline; - z-index: 100; -/* opacity: 0;*/ -} - -.main-text-block { - font-size: inherit; - max-width: 80%; -} - -.main-text-block a { - color: var(--main-color); - background-image: linear-gradient(var(--main-color),var(--main-color)); - background-position: 0px 3.2vw; - background-repeat: no-repeat; - transition: all .3s ease-out; -} -.main-text-block a:hover { - color: white; - background-position: 0px 0px; - background-image: linear-gradient(var(--dark-color),var(--dark-color)); - padding: 5px 10px; -} - -.main-hero-text { - font-size: inherit; - font-weight: 500; - width: auto; - display: inline; -} - -.hero-section img { - position: absolute; - z-index: -1; -} - -#clouds { - min-width: 100%; - min-height: 100vh; - left: 0px; - top: 0px; - opacity: 0.2; -} - -#mountains { - width: 100%; - min-height: 100vh; - bottom: -20vh; -} - -.benjamin-image-block { - width: 15vw; - height: 80vh; - position: absolute; - bottom: -10px; - background-color: var(--sec-color-2); - left: 15vw; - background-image: url("images/hero-image-ben.jpg"); - background-size: cover; - opacity: .2; - padding: 0; -} - -.benjamin-big-text-block { - position: absolute; - font-size: 8.5vw; - bottom: -40px; - left: 5%; - font-weight: 900; - line-height: 1em; - color: white; - mix-blend-mode: overlay; - filter: drop-shadow(0 0 20px rgba(0,0,0,0.4)); - padding: 40px; -} - -.main-cta-button { - font-size: 24px; - padding: 15px 40px; - margin-top: 20px; - background-color: var(--sec-color-1); - transition: all .3s ease-out; - background-image: linear-gradient(var(--dark-color),var(--dark-color)); -} - -.main-cta-button:hover { - background-image: linear-gradient(var(--dark-color),var(--dark-color)); - background-position: 0px 0px; - background-repeat: no-repeat; -} - - - - - - - - - -/*############################################################# -- My Work -- */ - -.my-work-section { - -} - -.my-work-section > div:nth-child(1) { - color: rgba(0,0,0,0.6); - align-items: flex-end; -} - -.my-work-section > div:nth-child(2) { - background-color: var(--sec-color-2); -/* width: 20%;*/ -} - -.my-work-section h2 { - text-align: right; - color: rgba(0,0,0,.8); -} - -.my-work-section p { - text-align: right; -} - - - - - - - - - -/*############################################################# -- About Me -- */ - -.about-me-section { - justify-content: flex-end; -} - -.about-me-section > div:nth-child(1) { - background-color: var(--sec-color-3); -/* width: 20%;*/ -} - - - - -/*############################################################# -- About Me -- */ - -.my-specialties-section { - justify-content: flex-start; - align-items: center; - flex-direction: column; - background-color: var(--dark-color); - color: white; - text-align: center; - padding: 100px; -} - -.my-specialties-section h2 { - -} - -.my-specialties-section p { - color: rgba(255,255,255,0.70); - max-width: 800px; -} - -.my-specialties-section > div { - max-width: 1140px; - width: 100%; - display: flex; - flex-wrap: wrap; - flex-direction: row; - padding: 20px 0 0 0; -} - -.my-specialties-section > div > div { - width: 100px; - height: 100px; - background-color: var(--main-color); - margin: 10px; - border-radius: 50%; - transform-style: preserve-3d; -} - - - - - - - - - - - - - - - - - -/* ################################################### Animations*/ - - - - - - - - - - - - - - - -/*##################################################################################################### -- Mobile Styles */ - -@media (max-width: 1200px) { - - - -} - - - - - -@media (max-width: 800px) { - - - -} - - - - - -@media (max-width: 600px) { - - - - -} - - - - - -@media (max-width: 430px) { - - - - -} - - - - - - -@media (max-width: 350px) { - - - -} - - - - - - - - - - - - - - - diff --git a/v3.html b/v3.html deleted file mode 100644 index 7efa520..0000000 --- a/v3.html +++ /dev/null @@ -1,228 +0,0 @@ - - - - - - - - - - Tben Design V3 - - - - - - - - - - - - - - - -
- - - - - - - -
- - -
Tben.
Design
-
- - -
- -
- - - - - - - - - - - -
-
- -
- - -
- - - - -
-
Benjamin
Toby
-
- - - - - - - - - -
-
-

Some of My Work

-

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Quis ipsum suspendisse ultrices gravida. Risus commodo viverra maecenas accumsan lacus vel facilisis.

-
- -
-
-
- - - - - - - - - - - -
-
-
- -
-

About Me

-

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Quis ipsum suspendisse ultrices gravida. Risus commodo viverra maecenas accumsan lacus vel facilisis.

-
-
- - - - - - - - - - - -
-

My Tools For Creating Awesomeness

-

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Quis ipsum suspendisse ultrices gravida. Risus commodo viverra maecenas accumsan lacus vel facilisis.

- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - - - - - - - - -
-
-

So. Let's have a chat

-

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Quis ipsum suspendisse ultrices gravida. Risus commodo viverra maecenas accumsan lacus vel facilisis.

-
- -
- -
- -
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
- -
- Simple HTML email form provided by: FreeContactForm.com -
- -
- -
-
- - - - - - - - - - - - - - - - - - - - \ No newline at end of file