Skip to content

Instantly share code, notes, and snippets.

@SafaElmali
Created March 26, 2021 08:43
Show Gist options
  • Save SafaElmali/8f88eb0e9ad8f3edfdf58efaf5b14472 to your computer and use it in GitHub Desktop.
Save SafaElmali/8f88eb0e9ad8f3edfdf58efaf5b14472 to your computer and use it in GitHub Desktop.
6 - CSSBattle - Target #4 - Ups n Downs
<div></div>
<div></div>
<div></div>
<style>
body {
background:#62306D;
display:flex;
justify-content:center;
align-items:center;
}
div {
width:100px;
height:100px;
background:#F7EC7D;
}
div:nth-of-type(2n+1){
border-radius:0% 0% 50% 50%;
transform:translateY(50px);
}
div:nth-of-type(2n){
border-radius:50% 50% 0% 0%;
transform:translateY(-50px);
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment