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