Amazing animation and drawing by Tayo Wegner which is done purely in CSS3 (no images). Every object in the fish tank is drawn using CSS shapes only. Although, 3k lines of CSS code make it a little difficult to understand.
It works great in Chrome/Safari and Firefox.
View Online In BLogger : http://pambah-timeline.blogspot.com/
/* Pure CSS3 fish tank demo demonstrating Css3 animation keyframes and some new technics that CSS3 can offer.
Copyright (C) 2012 Tayo Wegner
Let Pixels Take Over: www.lpto.net.
Email: [email protected]
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* ...............< Pure CSS3 animated fish tank demo >.................. */
body{
background-color: #393939;
margin:0px;
}
/* start of globals */
a{
text-decoration:none;
color:cornflowerblue;
}
h1{
text-align:center;
color: #717273;
}
/* end of globals */
/* start of wrap */
#wrap{
width:970px;
margin:auto;
font-family:tahoma,ariel;
position:relative;
}
.clear{
clear:both;
}
/* end of wrap */
.window{
/*border:1px solid #191919;*/
width:950px;
height:500px;
position:relative;
z-index: 20;
}
/* ...............< fish tank >.................. */
.fishtank_wrap{
border:1px solid #191919;
width:850px;
height:400px;
margin:auto;
margin-top:50px;
position:relative;
overflow: hidden;
border-right:20px solid #191919;
border-left:20px solid #191919;
border-bottom:8px solid #191919;
}
.water{
background-color: rgba(100, 148, 237, 0.09);
border-top: 1px solid #191919;
border-bottom: 1px solid #191919;
height: 349px;
position: absolute;
top: 30px;
width: 850px;
z-index: 160;
}
.fishtank{
box-shadow: 0 -10px 24px #817F7F inset, 0 -100px 134px #DCDCDC inset;
-moz-box-shadow: 0 -10px 24px #817F7F inset, 0 -100px 134px #DCDCDC...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.