Skip to content

Commit a3c3ce7

Browse files
committed
Polishes CSS animation duration and keyframe positions
1 parent 92e49c1 commit a3c3ce7

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/GitRocketTerminal.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ exports.decorateTerm = (Term, { React }) => {
7979

8080
render() {
8181
return (
82+
// Markup and styling for this section is adapted from Kevin Boudot's
83+
// Pen at https://codepen.io/kevinboudot/pen/EaQeNL
8284
<Rocket id="rocket" display={this.state.display}>
8385
<RocketSpan>
8486
<FinTop />

src/styledElements.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import styled, { keyframes } from 'styled-components';
22

33
export const launch = keyframes`
4-
0% { top: 110%; display: block; }
5-
100% { top: -10%; display: block; }
4+
0% { top: calc(100% + 100px); display: block; }
5+
100% { top: -100px; display: block; }
66
`;
77

8-
// Markup and CSS for this section is adapted from Kevin Boudot's Pen at
8+
// Markup and styling for this section is adapted from Kevin Boudot's Pen at
99
// https://codepen.io/kevinboudot/pen/EaQeNL
1010
export const wiggling = keyframes`
1111
0% {
@@ -52,9 +52,9 @@ export const Rocket = styled.div`
5252
display: ${props => (props.display ? 'block' : 'none')};
5353
position: absolute;
5454
left: calc(100% - 60px);
55-
top: 110%;
55+
top: calc(100% + 100px);
5656
transform: rotate(-90deg);
57-
animation: ${launch} 5s cubic-bezier(.81,.13,.89,.6);
57+
animation: ${launch} 4s cubic-bezier(.81,.13,.89,.6);
5858
`;
5959

6060
export const RocketSpan = styled.i`

0 commit comments

Comments
 (0)