From ef403108fb0f5ed2798bc7eb59fa487c323ac1fb Mon Sep 17 00:00:00 2001 From: Ezekiel Aquino Date: Fri, 14 Dec 2018 14:59:22 +0100 Subject: Edits CTA landing section --- .../ts/@next/components/animatedChatIcon.tsx | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 packages/website/ts/@next/components/animatedChatIcon.tsx (limited to 'packages/website/ts/@next/components/animatedChatIcon.tsx') diff --git a/packages/website/ts/@next/components/animatedChatIcon.tsx b/packages/website/ts/@next/components/animatedChatIcon.tsx new file mode 100644 index 000000000..ea97daf48 --- /dev/null +++ b/packages/website/ts/@next/components/animatedChatIcon.tsx @@ -0,0 +1,51 @@ +import * as React from 'react'; +import styled, { keyframes } from 'styled-components'; + +export const AnimatedChatIcon = () => ( + + + + + + + + + + + + + + + +); + +const scale = keyframes` + 0% { transform: scale(1.2) } + 20% { transform: scale(1) } + 80% { transform: scale(1) } + 100% { transform: scale(1.2) } +`; + +const fadeInOut = keyframes` + 0%, 50%, 54%, 100% { + transform: initial; + } + + 25% { + transform: translateY(-5px); + } +`; + +const Bubble = styled.g` + animation: ${scale} 5s infinite cubic-bezier(0.175, 0.885, 0.32, 1.275); + transform-origin: 50% 50%; + + path, + circle { + fill: ${props => props.theme.lightBgColor}; + } +`; + +const Dot = styled.circle<{ delay: number }>` + animation: ${fadeInOut} 5s ${props => `${props.delay}s`} infinite; +`; -- cgit From f6c173a97e3ad4c7a17024726151d7e747d01014 Mon Sep 17 00:00:00 2001 From: Ezekiel Aquino Date: Fri, 14 Dec 2018 15:02:01 +0100 Subject: Edits animation --- packages/website/ts/@next/components/animatedChatIcon.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'packages/website/ts/@next/components/animatedChatIcon.tsx') diff --git a/packages/website/ts/@next/components/animatedChatIcon.tsx b/packages/website/ts/@next/components/animatedChatIcon.tsx index ea97daf48..5e46497fd 100644 --- a/packages/website/ts/@next/components/animatedChatIcon.tsx +++ b/packages/website/ts/@next/components/animatedChatIcon.tsx @@ -13,8 +13,8 @@ export const AnimatedChatIcon = () => ( - - + + ); @@ -27,11 +27,11 @@ const scale = keyframes` `; const fadeInOut = keyframes` - 0%, 50%, 54%, 100% { + 0%, 50%, 70%, 100% { transform: initial; } - 25% { + 60% { transform: translateY(-5px); } `; -- cgit From 51def6ee6b66ecb2c1dc2a8c0d74a79a4264dfc0 Mon Sep 17 00:00:00 2001 From: Ezekiel Aquino Date: Fri, 14 Dec 2018 15:27:47 +0100 Subject: Adds mask to get in touch anim --- .../ts/@next/components/animatedChatIcon.tsx | 52 ++++++++++++++-------- 1 file changed, 34 insertions(+), 18 deletions(-) (limited to 'packages/website/ts/@next/components/animatedChatIcon.tsx') diff --git a/packages/website/ts/@next/components/animatedChatIcon.tsx b/packages/website/ts/@next/components/animatedChatIcon.tsx index 5e46497fd..bddb1d433 100644 --- a/packages/website/ts/@next/components/animatedChatIcon.tsx +++ b/packages/website/ts/@next/components/animatedChatIcon.tsx @@ -3,41 +3,52 @@ import styled, { keyframes } from 'styled-components'; export const AnimatedChatIcon = () => ( - - - - - - - - - + + + + + + + + + + + + + + + + + + + + - - - + + + ); const scale = keyframes` 0% { transform: scale(1.2) } - 20% { transform: scale(1) } - 80% { transform: scale(1) } + 10% { transform: scale(1) } + 90% { transform: scale(1) } 100% { transform: scale(1.2) } `; const fadeInOut = keyframes` - 0%, 50%, 70%, 100% { + 0%, 30%, 50%, 100% { transform: initial; } - 60% { + 40% { transform: translateY(-5px); } `; const Bubble = styled.g` - animation: ${scale} 5s infinite cubic-bezier(0.175, 0.885, 0.32, 1.275); + animation: ${scale} 4s infinite cubic-bezier(0.175, 0.885, 0.32, 1.275); transform-origin: 50% 50%; path, @@ -46,6 +57,11 @@ const Bubble = styled.g` } `; +const Rays = styled.g` + animation: ${scale} 4s infinite cubic-bezier(0.175, 0.885, 0.32, 1.275); + transform-origin: 50% 50%; +`; + const Dot = styled.circle<{ delay: number }>` - animation: ${fadeInOut} 5s ${props => `${props.delay}s`} infinite; + animation: ${fadeInOut} 4s ${props => `${props.delay}s`} infinite; `; -- cgit From 41ec26c927c53499306e8de40c688a2326cd799e Mon Sep 17 00:00:00 2001 From: Ezekiel Aquino Date: Fri, 14 Dec 2018 15:36:42 +0100 Subject: cta boxes hover state --- packages/website/ts/@next/components/animatedChatIcon.tsx | 5 ----- 1 file changed, 5 deletions(-) (limited to 'packages/website/ts/@next/components/animatedChatIcon.tsx') diff --git a/packages/website/ts/@next/components/animatedChatIcon.tsx b/packages/website/ts/@next/components/animatedChatIcon.tsx index bddb1d433..4b7466877 100644 --- a/packages/website/ts/@next/components/animatedChatIcon.tsx +++ b/packages/website/ts/@next/components/animatedChatIcon.tsx @@ -50,11 +50,6 @@ const fadeInOut = keyframes` const Bubble = styled.g` animation: ${scale} 4s infinite cubic-bezier(0.175, 0.885, 0.32, 1.275); transform-origin: 50% 50%; - - path, - circle { - fill: ${props => props.theme.lightBgColor}; - } `; const Rays = styled.g` -- cgit From 0dc9fc4ef7cce337a422a4e128ba451d0e088175 Mon Sep 17 00:00:00 2001 From: Ezekiel Aquino Date: Fri, 14 Dec 2018 15:38:56 +0100 Subject: More animation tweaks --- packages/website/ts/@next/components/animatedChatIcon.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/website/ts/@next/components/animatedChatIcon.tsx') diff --git a/packages/website/ts/@next/components/animatedChatIcon.tsx b/packages/website/ts/@next/components/animatedChatIcon.tsx index 4b7466877..feaa0631f 100644 --- a/packages/website/ts/@next/components/animatedChatIcon.tsx +++ b/packages/website/ts/@next/components/animatedChatIcon.tsx @@ -32,8 +32,8 @@ export const AnimatedChatIcon = () => ( const scale = keyframes` 0% { transform: scale(1.2) } - 10% { transform: scale(1) } - 90% { transform: scale(1) } + 15% { transform: scale(1) } + 85% { transform: scale(1) } 100% { transform: scale(1.2) } `; -- cgit From 9bd71aeeffbadebb41756a605ef6a0aacbfd47c4 Mon Sep 17 00:00:00 2001 From: Steve Klebanoff Date: Tue, 18 Dec 2018 13:24:53 -0800 Subject: run prettier on website --- .../ts/@next/components/animatedChatIcon.tsx | 70 ++++++++++++++++++---- 1 file changed, 57 insertions(+), 13 deletions(-) (limited to 'packages/website/ts/@next/components/animatedChatIcon.tsx') diff --git a/packages/website/ts/@next/components/animatedChatIcon.tsx b/packages/website/ts/@next/components/animatedChatIcon.tsx index feaa0631f..9a86e244c 100644 --- a/packages/website/ts/@next/components/animatedChatIcon.tsx +++ b/packages/website/ts/@next/components/animatedChatIcon.tsx @@ -4,28 +4,69 @@ import styled, { keyframes } from 'styled-components'; export const AnimatedChatIcon = () => ( - + - + - - - - - - + + + + + + - + - - - + + + ); @@ -57,6 +98,9 @@ const Rays = styled.g` transform-origin: 50% 50%; `; -const Dot = styled.circle<{ delay: number }>` +const Dot = + styled.circle < + { delay: number } > + ` animation: ${fadeInOut} 4s ${props => `${props.delay}s`} infinite; `; -- cgit