.title
h1 Singing Octo
ul.socials
li
a(href="https://ivan.odintsov.me", target="_blank")
img(
src="https://img.icons8.com/material/48/000000/link--v1.png",
alt="Link icon"
)
li
a(href="https://twitter.com/odintsov_design", target="_blank")
img(
src="https://img.icons8.com/color/48/000000/twitter.png",
alt="Twitter icon"
)
.container
.bubbles.bubbles-one
.bubbles.bubbles-two
.character
.head
.head-anim
.head-back
.rounding
.round.round-one
.round.round-two
.head-front
.circles
.mouth
.eyes
.eye.eye-one
.pupil
.eye.eye-two
.pupil
.body
.tentacles
.tentacles-left
.part-anim
.line
.line
.line
.line
.line
.line
.line
.line
.line
.tentacles-right
.part-one
.guitar
.deck
.neck
.credits.
Created with <span class="love"></span> by <a href="https://codepen.io/ivanodintsov">Ivan Odintsov</a> · Original by <a href="https://dribbble.com/shots/1548233-Singing-Octo">Justas Galaburda</a>
View Compiled
$white: #fff;
$gray: rgba(255, 255, 255, 0.6);
$gray-two: #f4f4f4;
$yellow: #fb1;
$pink: #e66;
$green: #055;
$light-blue: #aee;
$blue: #7de;
$dark-blue: #2bd;
$cobalt-blue: #248;
.container {
background-color: $cobalt-blue;
border-radius: 4px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
display: flex;
height: 300px;
margin: 40px auto 50px auto;
position: relative;
width: 450px;
}
.bubbles {
background-color: $gray;
border-radius: 100%;
bottom: 0;
height: 8px;
left: 0;
margin: auto;
position: absolute;
right: 0;
top: 50px;
transform: scale(0);
width: 8px;
z-index: 2;
&:before,
&:after {
background-color: $gray;
border-radius: 100%;
content: "";
display: block;
height: 5px;
left: -10px;
position: relative;
width: 5px;
}
&:before {
top: -10px;
}
&:after {
top: 2px;
}
&-one {
animation: anim-bubbles 2s ease-in-out 0s infinite;
}
&-two {
animation: anim-bubbles 2s ease-in-out 1.2s infinite;
&:after {
content: none;
}
}
}
.character {
animation: anim-jump 0.4s ease-in-out 0s infinite alternate-reverse;
margin: auto;
}
.head {
animation: anim-head 0.8s cubic-bezier(0.5, -1, 0.5, 2) 0s infinite
alternate-reverse;
height: 155px;
position: relative;
transform-origin: bottom;
z-index: 3;
&-anim {
animation: anim-jump 0.8s ease-in-out 0s infinite;
}
&-back {
background-color: $blue;
border-radius: 250px 250px 30px 30px;
height: 80px;
position: relative;
width: 150px;
}
&-front {
background-color: $light-blue;
border-radius: 40px 40px 0 0;
height: 155px;
margin: 0 auto;
position: relative;
top: -80px;
width: 90px;
}
}
.rounding {
bottom: -71.5px;
position: relative;
z-index: -1;
}
.round {
border: 9px solid $dark-blue;
border-radius: 25px 25px 0 0;
border-color: $dark-blue transparent transparent transparent;
height: 25px;
position: absolute;
width: 25px;
&-one {
left: -5px;
transform: rotate(45deg);
}
&-two {
right: -5px;
transform: rotate(-45deg);
}
}
.circles {
background-color: $blue;
border-radius: 100%;
height: 8px;
position: absolute;
right: 50px;
top: 70px;
width: 8px;
&:before,
&:after {
background-color: $blue;
border-radius: 100%;
content: "";
display: block;
height: 8px;
left: 10px;
position: relative;
width: 8px;
}
&:before {
top: -10px;
}
&:after {
top: 2px;
}
}
.eyes {
bottom: 0;
position: absolute;
width: 100%;
.eye {
background-color: $white;
border: 8px $blue solid;
border-radius: 100%;
display: flex;
height: 40px;
overflow: hidden;
position: relative;
width: 40px;
&:before,
&:after {
background-color: $blue;
content: "";
height: 50%;
position: absolute;
width: 100%;
z-index: 1;
}
&:before {
animation: anim-eye-top 1.8s ease-in-out 0s infinite;
top: -50%;
}
&:after {
animation: anim-eye-bottom 1.8s ease-in-out 0s infinite;
bottom: -50%;
left: 0;
}
&-one {
float: right;
}
}
}
.pupil {
margin: auto;
position: relative;
width: 25px;
height: 12px;
&:before,
&:after {
background-color: $green;
border: 1px solid $green;
border-radius: 8px 8px 0 8px;
content: "";
height: 10px;
left: 0;
position: absolute;
top: 0;
transform: rotate(-45deg);
width: 10px;
}
&:after {
border-radius: 8px 8px 8px 0;
left: auto;
right: 0;
transform: rotate(45deg);
}
}
.mouth {
animation: anim-mouth 2s ease-in-out 0s infinite;
background-color: $green;
border-radius: 0 0 15px 15px;
bottom: 105px;
height: 15px;
overflow: hidden;
margin: 0 auto;
position: relative;
width: 25px;
&:before,
&:after {
content: "";
display: block;
}
&:before {
background-color: $white;
height: 5px;
width: 90%;
transform: skewX(-15deg);
}
&:after {
animation: anim-mouth-teeth-bottom 2s ease-in-out 0s infinite;
background-color: $pink;
bottom: -4px;
border-radius: 100%;
height: 10px;
position: absolute;
width: 17px;
}
}
.body {
bottom: 2px;
height: 80px;
position: relative;
}
.tentacles {
box-shadow: inset 0 10px 0 0 $blue;
margin: 0 auto;
&:before,
&:after {
box-shadow: inset 0 20px 0 0 $blue;
content: "";
display: block;
position: absolute;
top: -10px;
}
&:before {
margin-left: -15px;
}
&:after {
margin-left: 15px;
}
&-left,
&-right {
height: 80px;
position: absolute;
top: -15px;
width: 100px;
}
&-left {
animation: anim-jump 0.6s alternate-reverse infinite,
anim-head 0.8s alternate-reverse infinite;
transform-origin: top;
z-index: 1;
&:before {
border: 10px solid;
border-color: transparent transparent transparent $light-blue;
border-radius: 0 0 0 20px;
content: "";
display: block;
height: 35px;
left: 34px;
position: relative;
transform: rotate(27deg);
width: 10px;
}
&:after {
border: 10px solid;
border-color: transparent transparent transparent $light-blue;
border-radius: 90px;
content: "";
display: block;
height: 21px;
left: 7px;
position: relative;
top: -86px;
transform: rotate(-65deg);
width: 100px;
z-index: -1;
}
.part-anim {
position: relative;
left: 18px;
top: 33px;
transform: rotate(72deg);
}
.line {
animation: anim-tentacle-left 0.25s ease-in-out alternate-reverse infinite;
background-color: $light-blue;
border-radius: 100% 80%;
height: 10px;
transform-origin: center right;
width: 10px;
}
}
&-right {
animation: anim-tentacle-right 0.8s ease-in-out alternate-reverse infinite;
transform-origin: top;
right: -15px;
&:before {
border: 10px solid;
border-color: transparent transparent transparent $light-blue;
border-radius: 0 0 0 15px;
content: "";
display: block;
height: 51px;
left: 34px;
position: relative;
width: 10px;
}
.part-one {
left: 35px;
position: relative;
top: -32px;
&:before {
border: 10px solid;
border-color: transparent transparent $light-blue $light-blue;
border-radius: 90px;
content: "";
display: block;
height: 15px;
transform: rotate(-45deg);
width: 15px;
}
&:after {
background-color: $light-blue;
border-radius: 50%;
content: "";
display: block;
height: 10px;
position: absolute;
right: 65px;
top: 13px;
width: 10px;
z-index: 2;
}
}
}
}
.tentacles,
.tentacles:before,
.tentacles:after {
background-color: $light-blue;
border-radius: 0 0 10px 10px;
height: 80px;
width: 10px;
}
.guitar {
animation: anim-head 0.8s ease-in-out 0s infinite alternate-reverse;
left: 50px;
position: relative;
top: -70px;
transform: rotate(-15deg);
transform-origin: left;
}
.deck {
background-color: $yellow;
border-radius: 100%;
height: 40px;
width: 38px;
&:before,
&:after {
border-radius: 100%;
content: "";
display: block;
position: relative;
}
&:before {
background-color: $yellow;
height: 30px;
left: 25px;
top: 6px;
width: 28px;
}
&:after {
background-color: $green;
bottom: 15px;
height: 12px;
left: 25px;
width: 12px;
}
}
.neck {
background-color: $pink;
height: 7px;
left: 37px;
position: absolute;
top: 17.5px;
width: 50px;
&:after {
background-color: $yellow;
bottom: 2px;
content: "";
display: block;
height: 11px;
right: -50px;
position: relative;
width: 20px;
}
}
@keyframes anim-jump {
0% {
transform: translateY(0px);
}
50% {
transform: translateY(-2px);
}
}
@keyframes anim-head {
0% {
transform: rotate(5deg);
}
100% {
transform: rotate(-5deg);
}
}
@keyframes anim-bubbles {
0% {
transform: scale(0);
}
30% {
transform: scale(1.3);
}
65% {
transform: scale(1.4);
left: 150px;
}
100% {
transform: scale(1.5);
bottom: 100%;
left: 80px;
}
}
@keyframes anim-eye-top {
10% {
top: 0%;
}
20% {
top: -50%;
}
}
@keyframes anim-eye-bottom {
10% {
bottom: 0%;
}
20% {
bottom: -50%;
}
}
@keyframes anim-mouth {
0% {
height: 15px;
}
10% {
height: 17px;
}
20% {
height: 15px;
}
30% {
height: 17px;
}
40% {
height: 15px;
}
50% {
height: 17px;
}
65% {
border-radius: 0 0 15px 15px;
height: 15px;
width: 25px;
}
66% {
border-radius: 15px;
height: 12px;
width: 10px;
}
80% {
border-radius: 15px;
height: 12px;
width: 10px;
}
81% {
border-radius: 0 0 15px 15px;
height: 8px;
width: 25px;
}
90% {
border-radius: 0 0 15px 15px;
height: 8px;
width: 25px;
}
}
@keyframes anim-mouth-teeth-bottom {
80% {
background-color: $pink;
bottom: -4px;
border-radius: 100%;
height: 10px;
width: 17px;
}
81% {
background-color: $white;
border-radius: 0;
bottom: 0;
height: 2px;
width: 100%;
}
90% {
background-color: $white;
border-radius: 0;
bottom: 0;
height: 2px;
width: 100%;
}
}
@keyframes anim-tentacle-left {
from {
transform: translateY(-2px) rotate(-7deg);
}
to {
transform: translateY(-2px) rotate(7deg);
}
}
@keyframes anim-tentacle-right {
from {
top: -17px;
}
to {
top: -32px;
}
}
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,600);
a {
color: #2196f3;
font-weight: 600;
&:hover {
color: $pink;
}
}
.title {
color: #999;
text-align: center;
h1 {
font-size: 1.5em;
margin: 100px 0 10px 0;
}
a {
vertical-align: middle;
&:hover {
img {
animation: link 0.5s;
}
}
}
img {
width: 18px;
}
}
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,600);
a {
font-weight: 600;
color: #91a7ff;
text-decoration: none;
}
a:hover {
color: #5c7cfa;
text-decoration: underline;
}
html,
body {
font-family: "Open Sans";
}
body {
background-color: #f8f9fa;
color: #adb5bd;
}
.title {
text-align: center;
}
.title h1 {
font-size: 1.5em;
margin: 100px 0 10px 0;
}
.socials {
display: block;
font-size: 14px;
margin: 0;
padding: 0;
li {
display: inline;
&:not(:last-child) {
margin-right: 0.75em;
}
a {
vertical-align: middle;
&:hover {
img {
animation: link 0.5s;
}
}
img {
width: 1.3em;
}
}
}
}
.credits {
font-size: 0.8em;
text-align: center;
}
.love {
background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/42764/heart-smil.svg);
display: inline-block;
height: 16px;
vertical-align: middle;
width: 16px;
}
.container {
border-radius: 4px;
box-shadow: 0 1px 3px #dee2e6;
height: 300px;
margin: 40px auto 50px auto;
position: relative;
width: 450px;
}
.artboard {
height: 100%;
overflow: hidden;
position: relative;
width: 100%;
}
@-webkit-keyframes link {
25% {
transform: rotate(10deg);
transform: rotate(10deg);
}
50% {
transform: rotate(-10deg);
transform: rotate(-10deg);
}
}
@keyframes link {
25% {
transform: rotate(10deg);
transform: rotate(10deg);
}
50% {
transform: rotate(-10deg);
transform: rotate(-10deg);
}
}
View Compiled
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.