CSS Elephant

Developer
Size
2,492 Kb
Views
34,408

How do I make an css elephant?

Saw a elephant by Alacran Creative on Dribbble and decided to make it out of CSS and HTML, enjoy!. What is a css elephant? How do you make a css elephant? This script and codes were developed by Albert Filice on 26 August 2022, Friday.

CSS Elephant Previews

CSS Elephant - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS Elephant</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="body">	<div id="face"></div> <div id="feet"></div> <div id="elephant-text">	<h1 class="chango">Elephant</h1> <span>Illustration by: <br> <a href="http://dribbble.com/shots/651996-Elephant-Kid" target="_blank">Alacran Creative</a> <br><br> CSS and HTML: <br> <a href="https://twitter.com/monstasaurous" target="_blank">Albert Filice</a></span>	</div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

CSS Elephant - Script Codes CSS Codes

@import url(http://fonts.googleapis.com/css?family=Chango);
.chango { font-family: 'Chango';
}
* { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;
}
*:before { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;
}
*:after { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;
}
body { background-color: #E5DCCA;
}
a { text-decoration: none; color: #000; font-weight: bold;
}
a:hover { color: #6b00b3;
}
#body { position: relative; margin: 80px auto; height: 64px; width: 90px; border: 6px solid #5D5D5D; border-bottom: none; border-radius: 45px 45px 0px 0px;
}
#body:before { content: ''; position: absolute; top: 18px; left: -16px; height: 18px; width: 18px; border-top: 6px solid #5D5D5D; border-left: 6px solid #5D5D5D; border-radius: 18px 0px 0px 0px;
}
#body:after { content: ''; position: absolute; top: 8px; left: 31px; height: 26px; width: 13px; border-top: 6px solid #5D5D5D; border-bottom: 6px solid #5D5D5D; border-left: 6px solid #5D5D5D; border-radius: 26px 0px 0px 26px;
}
#face { position: absolute; top: 19px; left: 48px; height: 11px; width: 11px; background-color: #5D5D5D; border-radius: 11px;
}
#face:before { content: ''; position: absolute; top: 16px; left: 20px; height: 23px; width: 6px; background-color: #5D5D5D; border-right: 1px solid rgba(112,112,110,0.5); border-bottom: 1px solid rgba(112,112,110,0.5);
}
#face:after { content: ''; position: absolute; top: 16px; left: 12px; height: 17px; width: 17px; border-left: 6px solid #5D5D5D; border-bottom: 6px solid #5D5D5D; border-radius: 0px 0px 0px 17px;
}
#feet { position: absolute; top: 47px; left: 4px; width: 21px; height: 11px; border-top: 6px solid #5D5D5D; border-right: 6px solid #5D5D5D; border-left: 6px solid #5D5D5D; border-radius: 21px 21px 0px 0px;
}
#feet:before { content: ''; position: absolute; top: -6px; left: 24px; width: 21px; height: 11px; border-top: 6px solid #5D5D5D; border-right: 6px solid #5D5D5D; border-left: 6px solid #5D5D5D; border-radius: 21px 21px 0px 0px;
}
#elephant-text { position: absolute; top: 100%; left: -57px; color: #000; box-shadow: 0px 15px 20px -20px #000;
}
#elephant-text h1 { line-height: 28px; text-shadow: 1 1px 0 #fff;
}
#elephant-text span { position: absolute; padding: 10px 0px; top: 100%; left: 10%; width: 80%;
}

CSS Elephant - Script Codes JS Codes

/*
Inspired by Alacran Creative's dribbble and decided to turn it into CSS and HTML. Enjoy!
*/
CSS Elephant - Script Codes
CSS Elephant - Script Codes
Home Page Home
Developer Albert Filice
Username monstersaurous
Uploaded August 26, 2022
Rating 3
Size 2,492 Kb
Views 34,408
Do you need developer help for CSS Elephant?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Albert Filice (monstersaurous) Script Codes
Create amazing video scripts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!