Flat design camera with CSS animation

Size
2,913 Kb
Views
26,312

How do I make an flat design camera with css animation?

What is a flat design camera with css animation? How do you make a flat design camera with css animation? This script and codes were developed by Damien Pereira Morberto on 14 December 2022, Wednesday.

Flat design camera with CSS animation Previews

Flat design camera with CSS animation - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Flat design camera with CSS animation</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="camera"> <div class="strip"> </div> <div class="lens"> </div> <div class="led"> </div> <div class="btn"> </div>
</div>
<div id="panel"> <div class="pic"> <img src="http://lorempixel.com/150/150/people"/> </div> <center> <a href="#" class="lnk">My Portfolio</a> </center>
</div>
<div class="shadow">
</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>

Flat design camera with CSS animation - Script Codes CSS Codes

@import url(https://fonts.googleapis.com/css?family=News+Cycle:400);
body { margin:0; padding:0; background-color:#333;
}
#camera, #panel { position:absolute; left:50%; top:50%; width:300px; height:300px; margin:-150px; background:#eaeaea; border:1px solid rgba(0,0,0,.2); border-radius:50px; overflow:hidden; transition: all .5s ease-in-out; -webkit-transition: all .5s ease-in-out; -moz-transition: all .5s ease-in-out; -ms-transition: all .5s ease-in-out; -o-transition: all .5s ease-in-out;
}
#panel { box-shadow: inset 0px -3px 0px rgba(0,0,0,.2); -webkit-transform:rotate(-90deg) scale(0); -moz-transform:rotate(-90deg) scale(0); -ms-transform:rotate(-90deg) scale(0); -o-transform:rotate(-90deg) scale(0); transform:rotate(-90deg) scale(0);
}
#camera { z-index:2;
}
.btn { position: absolute; top: 22px; right: 35px; width: 40px; height: 30px; background-color: #2e3e4f; border-radius: 15px; box-shadow: 0px 3px 0px rgba(0,0,0,.4); transition:all .2 ease-in-out; -webkit-transition:all .2 ease-in-out; -moz-transition:all .2 ease-in-out; -ms-transition:all .2 ease-in-out; -o-transition:all .2 ease-in-out; animation: .5s btn; -webkit-animation: .5s btn; -moz-animation: .5s btn; -ms-animation: .5s btn; -o-animation: .5s btn; animation-iteration-count:5; -webkit-animation-iteration-count:5; -moz-animation-iteration-count:5; -ms-animation-iteration-count:5; -o-animation-iteration-count:5;
}
.btn:hover { cursor:pointer; margin-top:2px; box-shadow: 0px 1px 0px rgba(0,0,0,.4);
}
.shadow { position: absolute; left: 50%; top: 50%; width: 240px; height: 20px; margin: 170px -120px 0px; border-radius: 50%; background-color: rgba(0,0,0,.3); transition: all .5s ease-in-out; -webkit-transition: all .5s ease-in-out; -moz-transition: all .5s ease-in-out; -ms-transition: all .5s ease-in-out; -o-transition: all .5s ease-in-out;
}
.strip { height: 110px; background-color: #54b59a; border-top: 10px solid #479a83; border-bottom: 10px solid #479a83; margin: 80px 0px; box-shadow: 0px 2px 0px rgba(0,0,0,.4);
}
.lens { position:absolute;	top:50%; left:50%;	width:144px; height:144px; margin:-90px;	border:18px solid #b44b37; border-radius:50%; background-color:#111; box-shadow: 0px 5px 0px rgba(0,0,0,.4);
}
.lens:before { content: ''; position: absolute; width: 50px; height: 50px; margin: 27px; border: 20px solid rgb(60, 60, 60); border-radius: 50%;	background: rgb(34, 34, 34);
}
.lens:after { content: ''; position: absolute; width: 8px; height: 8px; margin: 57px; border: 11px solid rgb(22, 22, 22); border-radius: 50%; background: rgb(131, 131, 131);
}
.led { position: absolute; left: 35px; top: 30px; width: 15px; height: 15px; border-radius: 50%; background-color: rgb(255, 136, 115); box-shadow: inset 0px 1px 0px rgba(0,0,0,.1); -webkit-animation: led .8s infinite; -moz-animation: led .8s infinite; -ms-animation: led .8s infinite; -o-animation: led .8s infinite; animation: led .8s infinite;
}
.pic { position: absolute; top: 50%;	left: 50%; width: 150px;	height: 150px; margin: -120px -75px; border: 5px solid #ccc; border-radius: 50%; overflow: hidden; box-shadow: 0px 2px 0px rgba(0,0,0,.2);
}
.lnk { position: relative; top: 220px; font: 22px 'News Cycle', sans-serif; color: #777; text-align: center; text-decoration:none; cursor:pointer; text-transform:uppercase; transition: all .2s ease-in-out; -webkit-transition: all .2s ease-in-out; -moz-transition: all .2s ease-in-out; -ms-transition: all .2s ease-in-out; -o-transition: all .2s ease-in-out;
}
.lnk:hover { text-shadow: 0px 1px 0px rgba(0,0,0,.2);
}
/* slide */
body.open > #panel { -webkit-transform-origin: 0% 100%; -webkit-transform:rotate(0deg) scale(1); -moz-transform-origin: 0% 100%; -moz-transform:rotate(0deg) scale(1); -ms-transform-origin: 0% 100%; -ms-transform:rotate(0deg) scale(1); -o-transform-origin: 0% 100%; -o-transform:rotate(0deg) scale(1); transform-origin: 0% 100%; transform:rotate(0deg) scale(1); margin-left:0;
}
body.open > #camera { margin-left:-300px;
}
body.open > .shadow { margin: 170px -260px 0px; width:520px;
}
/* keyframes */
@-webkit-keyframes led { from { opacity:.2; } to { opacity:1; }
}
@-moz-keyframes led { from { opacity:.2; } to { opacity:1; }
}
@-ms-keyframes led { from { opacity:.2; } to { opacity:1; }
}
@-o-keyframes led { from { opacity:.2; } to { opacity:1; }
}
@keyframes led { from { opacity:.2; } to { opacity:1; }
}
@-webkit-keyframes btn { from { margin-top:0px; top: 22px; } to { margin-top:2px; box-shadow: 0px 1px 0px rgba(0,0,0,.4); }
}
@-moz-keyframes btn { from { margin-top:0px; top: 22px; } to { margin-top:2px; box-shadow: 0px 1px 0px rgba(0,0,0,.4); }
}
@-ms-keyframes btn { from { margin-top:0px; top: 22px; } to { margin-top:2px; box-shadow: 0px 1px 0px rgba(0,0,0,.4); }
}
@-o-keyframes btn { from { margin-top:0px; top: 22px; } to { margin-top:2px; box-shadow: 0px 1px 0px rgba(0,0,0,.4); }
}
@keyframes btn { from { margin-top:0px; top: 22px; } to { margin-top:2px; box-shadow: 0px 1px 0px rgba(0,0,0,.4); }
}

Flat design camera with CSS animation - Script Codes JS Codes

$(function(){ $('.btn').click(function(){ $('body').hasClass('open') ? $('body').removeClass('open'):$('body').addClass('open') })
})
Flat design camera with CSS animation - Script Codes
Flat design camera with CSS animation - Script Codes
Home Page Home
Developer Damien Pereira Morberto
Username damienpm
Uploaded December 14, 2022
Rating 4.5
Size 2,913 Kb
Views 26,312
Do you need developer help for Flat design camera with CSS animation?

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!

Damien Pereira Morberto (damienpm) Script Codes
Create amazing art & images 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!