2

3D Floating Olympic Rings (#CSS)

 3 years ago
source link: https://codepen.io/amit_sheen/pen/gOWXxVx
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
3D Floating Olympic Rings (#CSS)

Pen Settings

HTML Preprocessor

Add Class(es) to <html>

Stuff for <head>

0 unsaved changes
xxxxxxxxxx
<div class="rings">
  <div></div>
  <div></div>
  <div></div>
  <div></div>
  <div></div>
  <div></div>
  <div></div>
  <div></div>
  <div></div>
  <div></div>
  <div></div>
  <div></div>
  <div></div>
  <div></div>
  <div></div>
  <div></div>
  <div></div>
</div>

CSS (SCSS)

CSS (SCSS)

*, *::before, *::after {
  padding: 0;
  margin: 0 auto;
  box-sizing: border-box;
}
body {
  background-image: radial-gradient(circle at center, #eee, #bbb 500px);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  overflow: hidden;
}
.rings {
  position: relative;
  transform-style: preserve-3d;
  animation: rings 5s infinite ease-in-out alternate;
  @keyframes rings {
xxxxxxxxxx
999px

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK