Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Jupiter #15

Merged
merged 2 commits into from Oct 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 7 additions & 1 deletion index.html
Expand Up @@ -40,7 +40,13 @@
<circle cx="50" cy="50" r="15" stroke-width="3" fill="red" />
</svg>
</div>


<div class="center absolute" id="jupiter">
<svg height="100" width="100">
<circle cx="50" cy="50" r="35" stroke-width="3" fill="brown" />
</svg>
</div>

<div class="center absolute" id="saturn">
<svg height="100" width="100">
<circle cx="50" cy="50" r="20" stroke-width="3" fill="red" />
Expand Down
7 changes: 7 additions & 0 deletions script.js
Expand Up @@ -21,6 +21,13 @@ TweenMax.to("#earth", 3, {
ease: Linear.easeNone,
});

TweenMax.to("#jupiter", 5, {
bezier: getBezier(200, 200, 350, 350, true),
repeat: -1,
ease: Linear.easeNone,
});


TweenMax.to("#mars", 4, {
bezier: getBezier(200, 200, 250, 250, true),
repeat: -1,
Expand Down