This zone is sleeping right now! ZzzZZzzz

Better not disturb it! ~You go to the petrol station and buy a slushy instead, everything is cool!~

This area will open again in 000.beats!

(Learn about Swatch Time)

Some other zones are awake :^]


Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining?
September 07, 2026 - @776.54
Activity rating: Two Stars Posts & Arts: 20/1k.beats Random | Recent Posts | Guild Recents
News: It's the silly things you'll remember :trash: Guild Events: There are no events!

+  MelonLand Forum
|-+  Projects & Art
| |-+  ☆ ∙ Web Projects
| | |-+  Animated Solar System Site Navigator


« previous next »
Pages: [1] Print Embed
Author Topic: Animated Solar System Site Navigator  (Read 170 times)
John
Jr. Member ⚓︎
**
View Profile WWW


I have no idea what I'm doing.
⛺︎ My Room

Guild Memberships:
Artifacts:
funguyVisited on Melon's 10th Anniversary!John Junior's Easter Egg 01John Junior's Easter Egg 02John Junior's Easter Egg 03
« on: September 01, 2026 @552.04 » Embed

Hello!

I considered posting this under "I Need Help", but it's not so much that I NEED help... I just had this idea and as always I have no idea what I'm doing so I wanted to present what I came up with and ask if there's a better solution. : D


https://johnsfiles.neocities.org/johniverse_logo.png


Basically, this is going to be just a page to list my several web projects, but I wanted to make it look like a solar system with each planet linking to one of my websites. My solution is to make offset images rotate. For me that means painstakingly altering offset and position values until the orbits more or less align. It's a lot of work and the results aren't perfect, so I was wondering if any of you people who actually know what you're doing see an obvious solution for all my problems. And if not, I hope you still enjoy my new silly project.

Logged

Kind regards,
https://johnshomepage.neocities.org/John_Badge.gif

Artifact Swap: ERR_FILE_NOT_FOUNDA Way OutTo the Moon!I met Dan Q on Melonland!BLTStar Wars YodaMr. SuitGuitarLucky Birdtree Conelil wizMagic CauldronInkyshroomPearlRed Floppy DiskPencilWolf Spawn Eggdithersnowy (for winter lovers)Minecraft VeteranBook and Quill
Dan Q
Hero Member ⚓︎
*****
View Profile WWWArt


I have no idea what I am doing
⛺︎ My Room
RSS: RSS

Guild Memberships:
Artifacts:
Dan Q Cruisin'I DIDN'T meet Dan Q on Melonland!Visited on Melon's 10th Anniversary!
« Reply #1 on: September 01, 2026 @632.85 » Embed

Do you mean something like this? This gives the inner planet a "day" of 8s and the outer one a "day" of 12s:

Code
.planetcastle a img {
  animation: axisRotate 12s infinite linear;
}

.planethp a img {
  animation: axisRotate 8s infinite linear;
}

@keyframes axisRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

If I were you, I'd also consider making planets slightly easier to click by pausing their orbits when they're hovered. I did this very-basically like this:

Code
.planethp:has(a:hover),
.planetcastle:has(a:hover) {
  animation-play-state: paused;
}

However, this only stops the planet and not the name on its orbit ring. It'd be nice to stop both. Perhaps you could wrap each planet and its ring in a super-element and then attach CSS to that; something like this:

Code
<!-- wrap EACH orbit in an orbit-wrapper -->
<div class="orbit-wrapper">
  <!-- make both animated parts of the orbit gain a second class, orbit-part -->
  <div class="planethp orbit-part">
    <img width="400px" src="orpbit_hp.png">
  </div>
  <div class="planethp orbit-part">
     ...
  </div>
</div>

This would let you do something like this to pause both at the same time:

Code
/* When a link in an orbit-wrapper is hovered, pause all animations on orbit-parts within that orbit-wrapper: */
.orbit-wrapper:has(a:hover) .orbit-part {
  animation-play-state: paused;
}

Those would be my next steps, I think!

This is looking amazing, BTW. You're doing great work!

Logged

https://danq.me/_q26t/badges/dan-q-88x31-lighter.gif https://danq.me/_q26t/badges/dan-q-88x31-peekaboo-scroller.gif https://beige-buttons.danq.dev/beige-buttons-88x31.gif https://embed-html.danq.dev/embed-html-88x31.gif

Artifact Swap: PolyamorousI met Dan Q on Melonland!Joined 2025!
Dan Q
Hero Member ⚓︎
*****
View Profile WWWArt


I have no idea what I am doing
⛺︎ My Room
RSS: RSS

Guild Memberships:
Artifacts:
Dan Q Cruisin'I DIDN'T meet Dan Q on Melonland!Visited on Melon's 10th Anniversary!
« Reply #2 on: September 01, 2026 @633.67 » Embed

But to answer your actual question: you're doing exactly the way I'd do this. You might be able to do something "fancier" using JavaScript and some maths, but CSS is a way superior solution and it looks great.

Logged

https://danq.me/_q26t/badges/dan-q-88x31-lighter.gif https://danq.me/_q26t/badges/dan-q-88x31-peekaboo-scroller.gif https://beige-buttons.danq.dev/beige-buttons-88x31.gif https://embed-html.danq.dev/embed-html-88x31.gif

Artifact Swap: PolyamorousI met Dan Q on Melonland!Joined 2025!
Pages: [1] Print Embed 
« previous next »
 

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021 | Privacy Notice | Send Feedback | Supporters ♥ Forum Guide | Rules | RSS | WAP | Mobile


MelonLand Badges and Other Melon Sites!

MelonLand Project! Visit the MelonLand Forum! Support the Forum
Visit Melonking.Net! Visit the Gif Gallery! Pixel Sea TamaNOTchi
@000 MelonLand Editor Recent Edits Tenement Arcade Want to Login or Join ? Forum Art Hub Chat Webring Web Guides Graphics Catalogue Wiki Newsletters Image Stream
Melon's Sites TamaNotchi Textures PixelSea GifyPet MoMG Ozwomp Online Loom Videos Leaky Webring Melonking
Tools Melon Software ArtHub Embed Maker ML Passports
Outlinks Frutiger Aero Forum Onio Club m15o's Web Services 32Bit Cafe iMood Webrings Internet Phone Book HTML Energy Declarations Hackers & Designers
Zap!
Minecraft: Online
Join: craft.melonking.net