Team:AUC TURKEY
From 2014hs.igem.org
(Difference between revisions)
Edipunluer (Talk | contribs) |
Edipunluer (Talk | contribs) |
||
Line 10: | Line 10: | ||
<link href='http://fonts.googleapis.com/css?family=PT+Sans+Narrow&v1' rel='stylesheet' type='text/css' /> | <link href='http://fonts.googleapis.com/css?family=PT+Sans+Narrow&v1' rel='stylesheet' type='text/css' /> | ||
<link href='http://fonts.googleapis.com/css?family=Wire+One&v1' rel='stylesheet' type='text/css' /> | <link href='http://fonts.googleapis.com/css?family=Wire+One&v1' rel='stylesheet' type='text/css' /> | ||
+ | </head> | ||
+ | <head> | ||
+ | <script" type="text/javascript"> | ||
+ | $.fn.slider = function() { | ||
+ | $(".loader").show("fade", 300); | ||
+ | $(".loader").delay(1000).hide("fade", 300); | ||
+ | $(".slider").delay(1500).show("fade", 300); | ||
+ | $(".shadow").delay(1800).show("fade", 500); | ||
+ | }; | ||
- | + | ||
+ | $(document).ready( function() { | ||
+ | $("#slider").slider(); | ||
+ | }); | ||
+ | </script> | ||
+ | </head> | ||
<style type="text/css"> | <style type="text/css"> | ||
Line 22: | Line 36: | ||
</style> | </style> | ||
<style type="text/css"> | <style type="text/css"> | ||
+ | /* ## GLOBAL VARIABLES #################### */ | ||
+ | @mainColor: red; /* first color on page*/ | ||
+ | @secondColor: grey; /* second color on page */ | ||
+ | @time: 10s; /* slider animation time */ | ||
+ | @width: 800px; | ||
+ | @height: 400px; | ||
+ | |||
+ | /* ## STYLES ############################## */ | ||
+ | @-webkit-keyframes progress { | ||
+ | 0% { width: 0px; height: 5px; } | ||
+ | 5% { width: 0px; height: 5px; } | ||
+ | 85% { width: inherit; height: 5px; } | ||
+ | 89% { width: inherit; height: 5px; } | ||
+ | 91% { width: inherit; height: 0px; } | ||
+ | 100% { width: inherit; height: 0px; } | ||
+ | } | ||
+ | |||
+ | @-webkit-keyframes captions { | ||
+ | 3% { height: 0px; } | ||
+ | 7% { height: 55px; } | ||
+ | 82% { height: 55px; } | ||
+ | 87% { height: 0px; } | ||
+ | } | ||
+ | |||
+ | @-webkit-keyframes fade { | ||
+ | 4% { opacity: 0; } | ||
+ | 15% { opacity: 1; } | ||
+ | 74% { opacity: 1; } | ||
+ | 86% { opacity: 0; } | ||
+ | } | ||
+ | |||
+ | @-webkit-keyframes slice-top { | ||
+ | 0% { -webkit-transform: scale(1) rotate(0deg); opacity: 1; top: 0; left: 0; } | ||
+ | 90% { -webkit-transform: scale(1) rotate(0deg); opacity: 1; top: 0; left: 0; } | ||
+ | /* 98% { opacity: 1; } */ | ||
+ | 100% { -webkit-transform: scale(1.116) rotate(-25deg); opacity: 0; top: -300px; left: -100px; } | ||
+ | } | ||
+ | |||
+ | @-webkit-keyframes slice-bottom { | ||
+ | 0% { -webkit-transform: scale(1) rotate(0deg); opacity: 1; bottom: 0; right: 0; } | ||
+ | 90% { -webkit-transform: scale(1) rotate(0deg); opacity: 1; bottom: 0; right: 0; } | ||
+ | /* 98% { opacity: 1; } */ | ||
+ | 100% { -webkit-transform: scale(1.116) rotate(-25deg); opacity: 0; bottom: -300px; right: -100px; } | ||
+ | } | ||
+ | |||
+ | a:link, a:link:before, a:link:after { | ||
+ | font-weight: normal; | ||
+ | text-decoration: none; | ||
+ | color: white; | ||
+ | content: ""; | ||
+ | } | ||
+ | |||
+ | a:visited { | ||
+ | font-weight: normal; | ||
+ | text-decoration: none; | ||
+ | color: grey; | ||
+ | } | ||
+ | |||
+ | a:focus { | ||
+ | font-weight: bold; | ||
+ | text-decoration: none; | ||
+ | } | ||
+ | |||
+ | a:hover { | ||
+ | font-weight: normal; | ||
+ | text-decoration: none; | ||
+ | color: lightgrey; | ||
+ | } | ||
+ | |||
+ | a:active { | ||
+ | font-weight: normal; | ||
+ | text-decoration: none; | ||
+ | color: grey; | ||
+ | } | ||
+ | |||
+ | #wrapper { | ||
+ | width: @width; | ||
+ | height: @height; | ||
+ | margin: 20px auto; | ||
+ | position: relative; | ||
+ | } | ||
+ | |||
.slider { | .slider { | ||
- | + | width: @width; | |
- | + | height: @height; | |
- | + | background-color: @secondColor; | |
- | + | overflow: hidden; | |
+ | display: none; | ||
+ | position: absolute; | ||
} | } | ||
- | . | + | |
- | + | .shadow { | |
+ | display: block; | ||
+ | height: 100px; | ||
+ | border-radius: 50%; | ||
+ | width: 112%; | ||
+ | box-shadow: #000 0px 150px 130px; | ||
+ | position: absolute; | ||
+ | bottom: 80px; | ||
+ | left: -6%; | ||
+ | z-index: -1; | ||
+ | display: none; | ||
} | } | ||
- | . | + | |
- | + | .controls { | |
- | + | position: absolute; | |
- | + | width: inherit; | |
- | + | height: inherit; | |
- | + | z-index: 999; | |
- | + | overflow: hidden; | |
- | + | ||
} | } | ||
- | . | + | .left { |
- | + | float: left; | |
- | + | -moz-transform:rotate(-45deg); | |
- | + | -webkit-transform:rotate(-45deg); | |
- | + | -o-transform:rotate(-45deg); | |
- | + | -ms-transform:rotate(-45deg); | |
- | + | transform:rotate(-45deg); | |
- | + | ||
- | + | ||
} | } | ||
- | . | + | .right { |
- | + | float: right; | |
+ | -moz-transform:rotate(135deg); | ||
+ | -webkit-transform:rotate(135deg); | ||
+ | -o-transform:rotate(135deg); | ||
+ | -ms-transform:rotate(135deg); | ||
+ | transform:rotate(135deg); | ||
} | } | ||
- | . | + | |
- | + | .arrow { | |
+ | height: 50px; | ||
+ | width: 50px; | ||
+ | border-top: 10px solid; | ||
+ | border-left: 10px solid; | ||
+ | border-color: rgba(255,255,255,0.3); | ||
+ | margin: 19.5% 30px; | ||
+ | cursor: pointer; | ||
+ | opacity: 0; | ||
+ | -webkit-animation: fade @time infinite; | ||
+ | -webkit-transition:border-color 0.2s; | ||
+ | -moz-transition:border-color 0.2s; | ||
+ | -o-transition:border-color 0.2s; | ||
+ | transition:border-color 0.2s | ||
} | } | ||
- | + | ||
- | . | + | .fade { |
- | + | -webkit-animation: fade @time; | |
- | + | ||
} | } | ||
- | . | + | .arrow:hover { |
- | + | border-color: rgba(255,255,255,0.7); | |
- | + | ||
} | } | ||
- | . | + | .progressbar { |
- | + | position: absolute; | |
- | + | bottom: 0px; | |
- | + | height: 5px; | |
- | + | background-color: @mainColor; | |
- | + | z-index: 999; | |
+ | -webkit-animation: progress @time linear infinite; | ||
} | } | ||
- | . | + | |
- | + | .captions { | |
+ | position: absolute; | ||
+ | bottom: 0px; | ||
+ | width: inherit; | ||
+ | height: 0px; | ||
+ | |||
+ | background-color: rgba(0,0,0,0.4); | ||
+ | -webkit-animation: captions @time infinite; | ||
+ | -webkit-transition: background-color 0.2s; | ||
+ | -moz-transition: background-color 0.2s; | ||
+ | -o-transition: background-color 0.2s; | ||
+ | transition: background-color 0.2s | ||
} | } | ||
- | + | ||
- | + | .captions:hover { | |
- | + | background-color: rgba(0,0,0,0.8); | |
- | + | cursor: pointer; | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
} | } | ||
- | . | + | |
- | + | .captions span { | |
+ | position: absolute; | ||
+ | z-index: 999; | ||
+ | bottom: 5px; | ||
+ | font-family: "HelveticaNeue", Helvetica, Arial, sans-serif; | ||
+ | color: white; | ||
+ | font-weight: lighter; | ||
+ | opacity: 0; | ||
+ | font-size: large; | ||
+ | padding: 0px 20px; | ||
+ | line-height: 50px; | ||
+ | cursor: pointer; | ||
+ | -webkit-font-smoothing: antialiased; | ||
+ | -webkit-animation: fade @time infinite; | ||
} | } | ||
- | . | + | |
- | + | .images { | |
+ | display: none; | ||
+ | position: absolute; | ||
+ | width: inherit; | ||
+ | height: inherit; | ||
} | } | ||
- | + | .images img { | |
- | . | + | |
position: absolute; | position: absolute; | ||
- | + | display: none; | |
- | + | width: inherit; | |
- | + | height: inherit; | |
} | } | ||
- | .slider . | + | |
+ | .image { | ||
+ | position: absolute; | ||
+ | width: inherit; | ||
+ | } | ||
+ | |||
+ | .slice-top { | ||
+ | top: 0; | ||
+ | height: 50%; | ||
+ | background-color: green; | ||
+ | -webkit-transform-origin: top center; | ||
+ | -webkit-animation: slice-top @time infinite; | ||
+ | } | ||
+ | |||
+ | .slice-bottom { | ||
+ | bottom: 0; | ||
+ | height: 50%; | ||
+ | background-color: green; | ||
+ | -webkit-transform-origin: bottom center; | ||
+ | -webkit-animation: slice-bottom @time infinite; | ||
+ | } | ||
+ | |||
+ | /* | ||
+ | #slider:hover .progressbar, #slider:hover .arrow, #slider:hover .fade, #slider:hover .slice-top, #slider:hover .slice-bottom, #slider:hover .captions, #slider:hover .captions span { | ||
+ | -webkit-animation-play-state: paused; | ||
+ | } | ||
+ | |||
+ | #slider div, #slider span { | ||
+ | -webkit-animation-iteration-count: 1 !important; | ||
+ | } */ | ||
+ | |||
+ | /* LOADER */ | ||
+ | @-webkit-keyframes rotate { | ||
+ | 0% { opacity: .2; -webkit-transform: rotateZ(-360deg); } | ||
+ | 50% { opacity: 1; -webkit-transform: rotateZ(0deg); } | ||
+ | 100% { opacity: .2; -webkit-transform: rotateZ(360deg); } | ||
+ | } | ||
+ | |||
+ | .loader { | ||
+ | top: ~"calc(50% - 53px)"; | ||
+ | left: ~"calc(50% - 53px)"; | ||
+ | height: 100px; | ||
+ | width: 100px; | ||
+ | display: none; | ||
+ | } | ||
+ | |||
+ | .loader, .loader:before, .loader:after { | ||
position: absolute; | position: absolute; | ||
- | top: 50%; | + | border: 3px solid transparent; |
- | + | border-top: 3px solid @mainColor; | |
- | + | border-radius: 50%; | |
+ | -webkit-animation: rotate linear infinite; | ||
+ | -webkit-animation-duration: 1.05s; | ||
+ | content: ''; | ||
} | } | ||
- | . | + | |
- | left: | + | .loader:before { |
+ | height: 75px; | ||
+ | width: 75px; | ||
+ | top: 10px; | ||
+ | left: 10px; | ||
+ | -webkit-animation-duration: 6s; | ||
} | } | ||
- | . | + | |
- | + | .loader:after { | |
+ | height: 50px; | ||
+ | width: 50px; | ||
+ | top: 22px; | ||
+ | left: 22px; | ||
+ | -webkit-animation-duration: 3s; | ||
} | } | ||
</style> | </style> | ||
Line 192: | Line 390: | ||
<body> | <body> | ||
- | <div | + | <div id="wrapper"> |
- | + | <div class="loader"></div> | |
- | + | <div class="slider"> | |
- | + | <div class="images"> | |
- | + | <img id="1" src="http://placehold.it/1000x450&text=Bild+1" data-href="http://google.de" data-caption="Test-Bild 1 (GOOGLE)" /> | |
- | + | <img id="2" src="http://placehold.it/1000x450&text=Bild+2" data-href="http://bing.com" data-caption="Test-Bild 2 (BING)" /> | |
- | <img src="http:// | + | <img id="3" src="http://placehold.it/1000x450&text=Bild+3" data-href="http://facebook.com" data-caption="Test-Bild 3 (FACEBOOK)" /> |
- | + | </div> | |
- | + | <div class="controls"> | |
- | <img src="http:// | + | <div class="arrow left"></div> |
- | + | <div class="arrow right"></div> | |
- | + | <div class="progressbar"></div> | |
- | + | <div class="captions"> | |
- | </ | + | <span>Bildunterschrift</span> |
- | < | + | </div> |
- | < | + | </div><!-- |
- | + | <div class="image slice-top"></div> | |
- | + | <div class="image slice-bottom"></div>--> | |
- | < | + | </div> |
- | + | <div class="shadow"></div> | |
- | < | + | |
- | + | ||
- | </ | + | |
- | </ | + | |
</div> | </div> | ||
</body> | </body> | ||
</html> | </html> |
Revision as of 15:02, 11 June 2014
sdasd