|
|
Line 1: |
Line 1: |
- | <html lang="en">
| + | {{:Team:HZAU-China/background-head}} |
- | <style type="text/css">
| + | <html> |
- | body {
| + | <style> |
- | background:#fff;
| + | |
- | }
| + | |
- | #p-logo {
| + | |
- | display: none;
| + | |
- | }
| + | |
- | #search-controls {
| + | |
- | display: none;
| + | |
- | }
| + | |
- | #top-section {
| + | |
- | height: 16px;
| + | |
- | background:url(https://static.igem.org/mediawiki/2012/8/84/Px.png) transparent repeat;
| + | |
- | width: 1000px;
| + | |
- | border:0px;
| + | |
- | }
| + | |
- | #menubar {
| + | |
- | top: -8px;
| + | |
- | font:15px Helvetica, Arial, Sans-serif;
| + | |
- | }
| + | |
- | .left-menu,.left-menu a {
| + | |
- | color: #8e8e8e;
| + | |
- | left: 0;
| + | |
- | text-align: left;
| + | |
- | text-transform: capitalize;
| + | |
- | }
| + | |
- | .left-menu li a:hover {
| + | |
- | color: #8e8e8e;
| + | |
- | text-decoration:underline;
| + | |
- | }
| + | |
- | #left-menu {
| + | |
- | margin-left:5px;
| + | |
- | }
| + | |
- | .right-menu,.right-menu a {
| + | |
- | color: #8e8e8e;
| + | |
- | right: 0;
| + | |
- | text-align: right;
| + | |
- | }
| + | |
- | .right-menu:hover, .left-menu:hover {
| + | |
- | background-color: transparent;
| + | |
- | } | + | |
- | .right-menu:hover a {
| + | |
- | color: #8e8e8e;
| + | |
- | } | + | |
- | .right-menu li a, .left-menu li a {
| + | |
- | background-color: transparent;
| + | |
- | color: #8e8e8e;
| + | |
- | padding: 0 15px 0 0;
| + | |
- | }
| + | |
- | .right-menu li a:hover {
| + | |
- | color: #8e8e8e;
| + | |
- | text-decoration:underline;
| + | |
- | }
| + | |
- | .right-menu li a:visited {
| + | |
- | color:#8e8e8e;
| + | |
- | }
| + | |
- | .firstHeading {
| + | |
- | display: none;
| + | |
- | }
| + | |
- | #catlinks {
| + | |
- | display: none;
| + | |
- | }
| + | |
- | #content {
| + | |
- | background: transparent;
| + | |
- | padding: 0;
| + | |
- | width: 100%;
| + | |
- | border: 0px;
| + | |
- | }
| + | |
- | .new {
| + | |
- | color:#8e8e8e;
| + | |
- | }
| + | |
- | #footer-box {
| + | |
- | display: none;
| + | |
- | }
| + | |
| a, a:visited { | | a, a:visited { |
- | color: #8e8e8e;
| |
- | text-decoration: none;
| |
- | }
| |
- | a:hover {
| |
- | color: #8e8e8e;
| |
- | text-decoration: underline;
| |
- | }
| |
- | #contentSub {
| |
- | display: none;
| |
- | }
| |
- | </style>
| |
- | <style>
| |
- |
| |
- | @import url('reset.css');
| |
- |
| |
- | /* General Demo Style */
| |
- | body{
| |
- | background: #f7f7f7 url(../images/old_wall.jpg) repeat top left;
| |
- | color: rgba(0,0,0,0.8);
| |
- | font-family: 'Kelly Slab','Myriad Pro', Arial, sans-serif;
| |
- | font-size: 15px;
| |
- | }
| |
- | a{
| |
| color: #fff; | | color: #fff; |
- | text-decoration: none;
| |
| } | | } |
- | .container{
| + | #background11{ |
- | width: 100%; | + | background:url(https://static.igem.org/mediawiki/2013/8/80/Old_wall.jpg); |
- | position: relative; | + | float:left; |
| + | min-heiht:200px; |
| + | width: 1000px; |
| } | | } |
- | .clr{
| + | #picture{ |
| + | background-color:transparent; |
| clear: both; | | clear: both; |
- | }
| |
- | h1{
| |
- | font-size: 24px;
| |
- | position:relative;
| |
- | font-weight: 400;
| |
- | padding: 30px 5px 10px 5px;
| |
- | margin: 0px 15px;
| |
- | color: rgba(153,157,181,0.6);
| |
- | text-shadow: 0px 1px 1px #fff;
| |
- | border-bottom: 1px solid rgba(17,17,22,0.1);
| |
- | }
| |
- | /* Header Style */
| |
- | .header{
| |
- | font-family:'Arial Narrow', Arial, sans-serif;
| |
- | line-height: 24px;
| |
- | font-size: 11px;
| |
- | background: #000;
| |
- | opacity: 0.9;
| |
- | text-transform: uppercase;
| |
- | z-index: 9999;
| |
- | position: relative;
| |
- | -moz-box-shadow: 1px 0px 2px #000;
| |
- | -webkit-box-shadow: 1px 0px 2px #000;
| |
- | box-shadow: 1px 0px 2px #000;
| |
- | }
| |
- | .header a{
| |
- | padding: 0px 10px;
| |
- | letter-spacing: 1px;
| |
- | color: #ddd;
| |
- | display: block;
| |
| float: left; | | float: left; |
| + | height: auto; |
| + | width: 535px; |
| + | padding-top: 10px; |
| + | padding-left: 18px; |
| + | padding-bottom: 10px; |
| } | | } |
- | .header a:hover{
| + | #paragraphs00{ |
- | color: #fff; | + | background-color: transparent; |
| + | float: right; |
| + | height: auto; |
| + | padding: 10px; |
| + | padding-right:18px; |
| + | width: 400px; |
| } | | } |
- | .header span.right{
| + | #paragraphs01{ |
| + | background-color: transparent; |
| float: right; | | float: right; |
| + | height: auto; |
| + | width: 400px; |
| + | font-family: Arial,Helvetica,sans-serif; |
| + | font-size: 20px; |
| + | text-align: justify; |
| + | border-style: solid; |
| + | border-width: 7px; |
| + | border-color: #ffd017; |
| } | | } |
- | .header span.right a{
| + | p { |
- | float: none; | + | line-height: 1.3em; |
- | display: inline;
| + | |
| } | | } |
- | .demos{
| + | #paragraphs02{ |
- | z-index: 1000; | + | background-color: transparent; |
- | text-align:center; | + | float: right; |
- | padding-top: 250px; | + | height: auto; |
- | position:fixed; | + | width: 400px; |
| + | padding:5px; |
| } | | } |
- | .demos a{
| + | #para1{ |
- | display: inline-block; | + | background-color: transparent; |
- | padding: 60px 8px;
| + | float: right; |
- | background: #000;
| + | height: auto; |
- | color: #fff;
| + | width: 380px; |
- | text-transform: uppercase; | + | padding-top:10px; |
- | font-family: Arial;
| + | |
- | font-size: 17px; | + | |
- | -webkit-font-smoothing:antialiased;
| + | |
- | box-shadow: 1px 1px 4px rgba(0,0,0,0.2); | + | |
- | -webkit-transition: all 0.2s linear; | + | |
- | -moz-transition: all 0.2s linear;
| + | |
- | -o-transition: all 0.2s linear;
| + | |
- | -ms-transition: all 0.2s linear;
| + | |
- | transition: all 0.2s linear;
| + | |
- | position:fixed;
| + | |
| } | | } |
- | .demos a:hover{
| + | #para2{ |
- | color: #fff; | + | background-color: transparent; |
- | background: #c90047; | + | float: right; |
- |
| + | height: auto; |
| + | width: 380px; |
| + | padding-left:10px; |
| + | padding-right:10px; |
| } | | } |
- | .demos a.current-demo,
| + | #background12{ |
- | .demos a.current-demo:hover{ | + | background:url(https://static.igem.org/mediawiki/2013/8/80/Old_wall.jpg); |
- | font-weight: bold; | + | float:left; |
- | background: #c90047; | + | heiht:300px; |
- | color: #fff; | + | width: 1000px; |
- | cursor: default;
| + | padding-bottom:3px; |
| } | | } |
- | /* CSS reset */
| + | #sidebar{ |
- | body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td {
| + | background-color:transparent; |
- | margin:0;
| + | height: auto; |
- | padding:0;
| + | float:left; |
| + | width: 200px; |
| } | | } |
- | html,body {
| + | #sidebar1{ |
- | margin:0;
| + | background-color:#ffd017; |
- | padding:0;
| + | clear: both; |
| + | height: auto; |
| + | width: 200px; |
| } | | } |
- | table {
| + | #sidebar2{ |
- | border-collapse:collapse;
| + | background-color:#F3D972; |
- | border-spacing:0;
| + | clear: both; |
| + | height: auto; |
| + | width: 200px; |
| } | | } |
- | fieldset,img {
| + | #sidebar3{ |
- | border:0;
| + | background-color:#7770b4; |
| + | clear: both; |
| + | height: auto; |
| + | width: 200px; |
| } | | } |
- | input{
| + | #sidebar4{ |
- | border:1px solid #b0b0b0;
| + | background-color:#8ca6c0; |
- | padding:3px 5px 4px;
| + | |
- | color:#979797;
| + | |
- | width:190px;
| + | |
- | }
| + | |
- | address,caption,cite,code,dfn,th,var {
| + | |
- | font-style:normal;
| + | |
- | font-weight:normal;
| + | |
- | }
| + | |
- | ol,ul {
| + | |
- | list-style:none;
| + | |
- | }
| + | |
- | caption,th {
| + | |
- | text-align:left;
| + | |
- | }
| + | |
- | h1,h2,h3,h4,h5,h6 {
| + | |
- | font-size:100%;
| + | |
- | font-weight:normal;
| + | |
- | }
| + | |
- | q:before,q:after {
| + | |
- | content:'';
| + | |
- | }
| + | |
- | abbr,acronym { border:0;
| + | |
- | }
| + | |
- | h2.ss-subtitle{
| + | |
- | padding: 10px 10px 40px; | + | |
- | font-size: 52px;
| + | |
- | text-transform: uppercase;
| + | |
- | color: rgba(0,0,0,0.8);
| + | |
- | position: relative;
| + | |
- | text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
| + | |
- | }
| + | |
- | h2.ss-subtitle:before{
| + | |
- | width: 4px;
| + | |
- | height: 40px;
| + | |
- | background: rgba(17,17,22,0.8);
| + | |
- | content: '';
| + | |
- | position: absolute;
| + | |
- | right: 75%;
| + | |
- | margin-right: -4px;
| + | |
- | bottom: -4px;
| + | |
- | -moz-border-radius: 2px 2px 0px 0px;
| + | |
- | -webkit-border-radius: 2px 2px 0px 0px;
| + | |
- | border-radius: 2px 2px 0px 0px;
| + | |
- | }
| + | |
- | h2.ss-subtitle:after{
| + | |
- | width: 25%;
| + | |
- | height: 0px;
| + | |
- | border-bottom: 4px dotted rgba(17,17,22,0.8);
| + | |
- | content: '';
| + | |
- | position: absolute;
| + | |
- | right: 50%;
| + | |
- | margin-right: -1px;
| + | |
- | bottom: -4px;
| + | |
- | }
| + | |
- | .ss-links{
| + | |
- | position: fixed;
| + | |
- | left: 10px;
| + | |
- | top: 166px;
| + | |
- | width: 25%;
| + | |
- | z-index: 100;
| + | |
- | }
| + | |
- | .ss-links a{
| + | |
- | background: rgba(0,0,0,0.2);
| + | |
- | font-size: 16px;
| + | |
- | width: 40px;
| + | |
- | height: 40px;
| + | |
- | line-height: 40px;
| + | |
- | margin: 5px;
| + | |
- | float: left;
| + | |
- | border-radius: 50%;
| + | |
- | display: block;
| + | |
- | text-align: center;
| + | |
- | -webkit-transition: background 0.2s linear;
| + | |
- | -moz-transition: background 0.2s linear;
| + | |
- | -o-transition: background 0.2s linear;
| + | |
- | -ms-transition: background 0.2s linear;
| + | |
- | transition: background 0.2s linear;
| + | |
- | }
| + | |
- | .ss-links a:hover{
| + | |
- | background: rgba(0,0,0,0.4);
| + | |
- | }
| + | |
- | .ss-container{
| + | |
- | width: 100%;
| + | |
- | position: relative;
| + | |
- | text-align: left;
| + | |
- | float: left;
| + | |
- | overflow: hidden;
| + | |
- | padding-bottom: 500px;
| + | |
- | }
| + | |
- | .ss-container h2{
| + | |
- | font-size: 40px;
| + | |
- | text-transform: uppercase;
| + | |
- | color: rgba(78,84,123,0.2);
| + | |
- | text-shadow: 0px 1px 1px #fff;
| + | |
- | padding: 20px 0px;
| + | |
- | }
| + | |
- | .ss-container:before{
| + | |
- | position: absolute;
| + | |
- | width: 4px;
| + | |
- | background: rgba(17,17,22,0.8);
| + | |
- | top: 0px;
| + | |
- | left: 50%;
| + | |
- | margin-left: -2px;
| + | |
- | content: '';
| + | |
- | height: 100%;
| + | |
- | }
| + | |
- | .ss-row{
| + | |
- | width: 100%;
| + | |
| clear: both; | | clear: both; |
- | float: left; | + | height: auto; |
- | position: relative;
| + | width: 200px; |
- | padding: 30px 0;
| + | |
- | }
| + | |
- | .ss-left, .ss-right{
| + | |
- | float: left;
| + | |
- | width: 48%; | + | |
- | position: relative;
| + | |
- | }
| + | |
- | .ss-right{
| + | |
- | padding-left: 2%;
| + | |
- | }
| + | |
- | .ss-left{
| + | |
- | text-align: right;
| + | |
- | float: left;
| + | |
- | padding-right: 2%;
| + | |
- | }
| + | |
- | .ss-circle{
| + | |
- | border-radius: 50%;
| + | |
- | overflow: hidden;
| + | |
- | display: block;
| + | |
- | text-indent: -9000px;
| + | |
- | text-align: left;
| + | |
- | -webkit-box-shadow:
| + | |
- | 0px 2px 5px rgba(0,0,0,0.7) inset,
| + | |
- | 0px 0px 0px 12px rgba(61,64,85,0.3);
| + | |
- | -moz-box-shadow:
| + | |
- | 0px 2px 5px rgba(0,0,0,0.7) inset,
| + | |
- | 0px 0px 0px 12px rgba(61,64,85,0.3);
| + | |
- | box-shadow:
| + | |
- | 0px 2px 5px rgba(0,0,0,0.7) inset,
| + | |
- | 0px 0px 0px 12px rgba(61,64,85,0.3);
| + | |
- | background-size: cover;
| + | |
- | background-color: #f0f0f0;
| + | |
- | background-repeat: no-repeat;
| + | |
- | background-position: center center;
| + | |
- | position: static;
| + | |
- | }
| + | |
- | .ss-small .ss-circle{
| + | |
- | width: 100px;
| + | |
- | height: 100px;
| + | |
- | }
| + | |
- | .ss-medium .ss-circle{
| + | |
- | width: 200px;
| + | |
- | height: 200px;
| + | |
- | }
| + | |
- | .ss-large .ss-circle{
| + | |
- | width: 300px;
| + | |
- | height: 300px;
| + | |
- | }
| + | |
- | .ss-circle-deco:before{
| + | |
- | width: 29%;
| + | |
- | height: 0px;
| + | |
- | border-bottom: 5px dotted #ddd;
| + | |
- | border-bottom: 5px dotted rgba(17, 17, 22, 0.3);
| + | |
- | -webkit-box-shadow: 0px 1px 1px #fff;
| + | |
- | -moz-box-shadow: 0px 1px 1px #fff;
| + | |
- | box-shadow: 0px 1px 1px #fff;
| + | |
- | position: absolute;
| + | |
- | top: 50%;
| + | |
- | content: '';
| + | |
- | margin-top: -3px;
| + | |
- | }
| + | |
- | .ss-circle-deco:after{
| + | |
- | width: 0px;
| + | |
- | height: 0px;
| + | |
- | border-top: 10px solid transparent;
| + | |
- | border-bottom: 10px solid transparent;
| + | |
- | content: '';
| + | |
- | position: absolute;
| + | |
- | top: 50%;
| + | |
- | margin-top: -10px;
| + | |
- | }
| + | |
- | .ss-left .ss-circle-deco:before{
| + | |
- | right: 2%;
| + | |
- | }
| + | |
- | .ss-right .ss-circle-deco:before{
| + | |
- | left: 2%;
| + | |
- | }
| + | |
- | .ss-left .ss-circle-deco:after{
| + | |
- | right: 0;
| + | |
- | border-right: 10px solid rgba(17,17,22,0.8);
| + | |
- | }
| + | |
- | .ss-right .ss-circle-deco:after{
| + | |
- | left: 0;
| + | |
- | border-left: 10px solid rgba(17,17,22,0.8);
| + | |
- | }
| + | |
- | .ss-left .ss-circle{
| + | |
- | float: right;
| + | |
- | margin-right: 30%;
| + | |
- | }
| + | |
- | .ss-right .ss-circle{
| + | |
- | float: left;
| + | |
- | margin-left: 30%;
| + | |
- | }
| + | |
- | .ss-container h3{
| + | |
- | margin-top: 34px;
| + | |
- | padding: 10px 15px;
| + | |
- | background: rgba(26, 27, 33, 0.6);
| + | |
- | text-shadow: 1px 1px 1px rgba(26, 27, 33, 0.8)
| + | |
- | }
| + | |
- | .ss-container .ss-medium h3{
| + | |
- | margin-top: 82px;
| + | |
- | }
| + | |
- | .ss-container .ss-large h3{
| + | |
- | margin-top: 133px;
| + | |
- | }
| + | |
- | .ss-container .ss-left h3{
| + | |
- | border-right: 5px solid rgba(164,166,181,0.8);
| + | |
- | }
| + | |
- | .ss-container .ss-right h3{
| + | |
- | border-left: 5px solid rgba(164,166,181,0.8);
| + | |
- | }
| + | |
- | .ss-container h3 span{
| + | |
- | color: rgba(255,255,255,0.8);
| + | |
- | font-size: 13px;
| + | |
- | display: block;
| + | |
- | padding-bottom: 5px;
| + | |
- | }
| + | |
- | .ss-container h3 a{
| + | |
- | font-size: 28px;
| + | |
- | color: rgba(255,255,255,0.9);
| + | |
- | display: block;
| + | |
- | }
| + | |
- | .ss-container h3 a:hover{
| + | |
- | color: rgba(255,255,255,1);
| + | |
- | }
| + | |
- | .ss-circle-1{
| + | |
- | background-image:url(../images/1.jpg);
| + | |
- | }
| + | |
- | .ss-circle-2{
| + | |
- | background-image: url(../images/2.jpg);
| + | |
- | }
| + | |
- | .ss-circle-3{
| + | |
- | background-image: url(../images/3.jpg);
| + | |
- | }
| + | |
- | .ss-circle-4{
| + | |
- | background-image: url(../images/4.jpg);
| + | |
- | }
| + | |
- | .ss-circle-5{
| + | |
- | background-image: url(../images/5.jpg);
| + | |
- | }
| + | |
- | .ss-circle-6{
| + | |
- | background-image: url(../images/6.jpg);
| + | |
- | }
| + | |
- | .ss-circle-7{
| + | |
- | background-image: url(../images/7.jpg);
| + | |
- | }
| + | |
- | .ss-circle-8{
| + | |
- | background-image: url(../images/8.jpg);
| + | |
- | }
| + | |
- | .ss-circle-9{
| + | |
- | background-image: url(../images/9.jpg);
| + | |
- | }
| + | |
- | .ss-circle-10{
| + | |
- | background-image: url(../images/10.jpg);
| + | |
- | }
| + | |
- | .ss-circle-11{
| + | |
- | background-image: url(../images/11.jpg);
| + | |
- | }
| + | |
- | .ss-circle-12{
| + | |
- | background-image: url(../images/12.jpg);
| + | |
- | }
| + | |
- | .ss-circle-13{
| + | |
- | background-image: url(../images/13.jpg);
| + | |
- | }
| + | |
- | .ss-circle-14{
| + | |
- | background-image: url(../images/14.jpg);
| + | |
- | }
| + | |
- | .ss-circle-15{
| + | |
- | background-image: url(../images/15.jpg);
| + | |
- | }
| + | |
- | .ss-circle-16{
| + | |
- | background-image: url(../images/16.jpg);
| + | |
- | }
| + | |
- | .ss-circle-17{
| + | |
- | background-image: url(../images/17.jpg);
| + | |
- | }
| + | |
- | .ss-circle-18{
| + | |
- | background-image: url(../images/18.jpg);
| + | |
- | }
| + | |
- | .ss-circle-19{
| + | |
- | background-image: url(../images/19.jpg);
| + | |
- | }
| + | |
- | .ss-circle-20{
| + | |
- | background-image: url(../images/20.jpg);
| + | |
- | }
| + | |
- | .ss-circle-21{
| + | |
- | background-image: url(../images/21.jpg);
| + | |
- | }
| + | |
- | .ss-circle-22{
| + | |
- | background-image: url(../images/22.jpg);
| + | |
- | }
| + | |
- | .ss-circle-23{
| + | |
- | background-image: url(../images/23.jpg);
| + | |
- | }
| + | |
- | .ss-circle-24{
| + | |
- | background-image: url(../images/24.jpg);
| + | |
- | }
| + | |
- | .ss-circle-25{
| + | |
- | background-image: url(../images/25.jpg);
| + | |
- | }
| + | |
- | .ss-circle-26{
| + | |
- | background-image: url(../images/26.jpg);
| + | |
- | }
| + | |
- | .ss-circle-27{
| + | |
- | background-image: url(../images/27.jpg);
| + | |
- | }
| + | |
- | .ss-circle-28{
| + | |
- | background-image: url(../images/28.jpg);
| + | |
- | }
| + | |
- | .ss-circle-29{
| + | |
- | background-image: url(../images/29.jpg);
| + | |
- | }
| + | |
- | .ss-circle-30{
| + | |
- | background-image: url(../images/30.jpg);
| + | |
- | }
| + | |
- | .ss-links a{
| + | |
- | background: #000;
| + | |
- | }
| + | |
- | .ss-links a:hover{
| + | |
- | background: #333;
| + | |
- | }
| + | |
- | h2.ss-subtitle:before{
| + | |
- | background: #333;
| + | |
- | }
| + | |
- | h2.ss-subtitle:after{
| + | |
- | border-bottom: 4px dotted #333;
| + | |
- | }
| + | |
- | .ss-container:before{
| + | |
- | background: #333;
| + | |
- | }
| + | |
- | .ss-circle{
| + | |
- | border: 10px solid #000;
| + | |
- | }
| + | |
- | .ss-circle-deco:before{
| + | |
- | width: 29%;
| + | |
- | height: 0px;
| + | |
- | border-bottom: 5px dotted #ddd;
| + | |
- | border-bottom: 5px dotted rgba(17, 17, 22, 0.3);
| + | |
- | -webkit-box-shadow: 0px 1px 1px #fff;
| + | |
- | -moz-box-shadow: 0px 1px 1px #fff;
| + | |
- | box-shadow: 0px 1px 1px #fff;
| + | |
- | position: absolute;
| + | |
- | top: 50%;
| + | |
- | content: '';
| + | |
- | margin-top: -3px;
| + | |
- | }
| + | |
- | .ss-circle-deco:after{
| + | |
- | width: 15px;
| + | |
- | height: 15px;
| + | |
- | background: #000;
| + | |
- | padding: none;
| + | |
- | border: none;
| + | |
- | }
| + | |
- | .ss-container h3{
| + | |
- | background:#777;
| + | |
- | }
| + | |
- | .ss-container h3 span{
| + | |
- | color: #fff;
| + | |
- | }
| + | |
- | .ss-container h3 a{
| + | |
- | font-size: 28px;
| + | |
- | color: #f8f8f8;
| + | |
- | display: block;
| + | |
- | }
| + | |
- | .ss-container h3 a:hover{
| + | |
- | color: #fff;
| + | |
| } | | } |
| + | </style> |
| | | |
| + | <style> |
| + | ul,li{margin:0;padding:0;} |
| + | ul{list-style-type:none;} |
| + | #box{position:relative;width:525px;height:395px;background-color:transparent;border:7px solid #000;margin:0px auto;cursor:pointer;} |
| + | #box .list{position:relative;width:525px;height:395px;overflow:hidden;} |
| + | #box .list ul{position:absolute;top:0;left:0;} |
| + | #box .list li{width:525px;height:395px;overflow:hidden;} |
| + | #box .count{position:absolute;right:0;bottom:5px;} |
| + | #box .count li{color:#fff;float:left;width:20px;height:20px;cursor:pointer;margin-right:5px;overflow:hidden;background:#ffd017;opacity:0.7;filter:alpha(opacity=70);border-radius:20px;} |
| + | #box .count li.current{color:#fff;opacity:1;filter:alpha(opacity=100);font-weight:700;background:#7770b4;} |
| + | #tmp{width:100px;height:100px;background:red;position:absolute;} |
| </style> | | </style> |
- | <!DOCTYPE html>
| + | <script type="text/javascript"> |
- | <html lang="en">
| + | window.onload = function () |
- | <head>
| + | { |
- | <title>Lateral On-Scroll Sliding with jQuery</title>
| + | var oBox = document.getElementById("box"); |
- | <meta charset="UTF-8" />
| + | var oList = oBox.getElementsByTagName("ul")[0]; |
- | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
| + | var aImg = oBox.getElementsByTagName("img"); |
- | <meta name="viewport" content="width=device-width, initial-scale=1.0">
| + | var timer = playTimer = null; |
- | <meta name="description" content="Lateral On-Scroll Sliding with jQuery - Timeline Example with CSS3" />
| + | var index = i = 0; |
- | <meta name="keywords" content="lateral, sides, slide, scroll, jquery, css3, timeline" />
| + | var bOrder = true; |
- | <meta name="author" content="Codrops" />
| + | var aTmp = []; |
- | <link rel="shortcut icon" href="../favicon.ico">
| + | var aBtn = null; |
- | <link rel="stylesheet" type="text/css" href="css/demo.css" />
| + | |
- | <link rel="stylesheet" type="text/css" href="css/style.css" />
| + | //生成数字按钮 |
- | <link href='http://fonts.googleapis.com/css?family=Kelly+Slab' rel='stylesheet' type='text/css' />
| + | for (i = 0; i < aImg.length; i++) aTmp.push("<li>" + (i + 1) + "</li>"); |
- | <!--[if lt IE 9]>
| + | |
- | <link rel="stylesheet" type="text/css" href="css/styleIE.css" />
| + | //插入元素 |
- | <![endif]-->
| + | var oCount = document.createElement("ul"); |
- | <script>
| + | oCount.className = "count"; |
- | /* Modernizr 2.0.6 (Custom Build) | MIT & BSD
| + | oCount.innerHTML = aTmp.join(""); |
- | * Build: http://www.modernizr.com/download/#-csstransforms3d-iepp-cssclasses-teststyles-testprop-prefixes-load
| + | oBox.appendChild(oCount); |
- | */
| + | aBtn = oBox.getElementsByTagName("ul")[1].getElementsByTagName("li"); |
- | ;window.Modernizr=function(a,b,c){function A(a,b){for(var d in a)if(k[a[d]]!==c)return b=="pfx"?a[d]:!0;return!1}function z(a,b){return!!~(""+a).indexOf(b)}function y(a,b){return typeof a===b}function x(a,b){return w(n.join(a+";")+(b||""))}function w(a){k.cssText=a}var d="2.0.6",e={},f=!0,g=b.documentElement,h=b.head||b.getElementsByTagName("head")[0],i="modernizr",j=b.createElement(i),k=j.style,l,m=Object.prototype.toString,n=" -webkit- -moz- -o- -ms- -khtml- ".split(" "),o={},p={},q={},r=[],s=function(a,c,d,e){var f,h,j,k=b.createElement("div");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:i+(d+1),k.appendChild(j);f=["­","<style>",a,"</style>"].join(""),k.id=i,k.innerHTML+=f,g.appendChild(k),h=c(k,a),k.parentNode.removeChild(k);return!!h},t,u={}.hasOwnProperty,v;!y(u,c)&&!y(u.call,c)?v=function(a,b){return u.call(a,b)}:v=function(a,b){return b in a&&y(a.constructor.prototype[b],c)};var B=function(a,c){var d=a.join(""),f=c.length;s(d,function(a,c){var d=b.styleSheets[b.styleSheets.length-1],g=d.cssRules&&d.cssRules[0]?d.cssRules[0].cssText:d.cssText||"",h=a.childNodes,i={};while(f--)i[h[f].id]=h[f];e.csstransforms3d=i.csstransforms3d.offsetLeft===9},f,c)}([,["@media (",n.join("transform-3d),("),i,")","{#csstransforms3d{left:9px;position:absolute}}"].join("")],[,"csstransforms3d"]);o.csstransforms3d=function(){var a=!!A(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]);a&&"webkitPerspective"in g.style&&(a=e.csstransforms3d);return a};for(var C in o)v(o,C)&&(t=C.toLowerCase(),e[t]=o[C](),r.push((e[t]?"":"no-")+t));w(""),j=l=null,a.attachEvent&&function(){var a=b.createElement("div");a.innerHTML="<elem></elem>";return a.childNodes.length!==1}()&&function(a,b){function s(a){var b=-1;while(++b<g)a.createElement(f[b])}a.iepp=a.iepp||{};var d=a.iepp,e=d.html5elements||"abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",f=e.split("|"),g=f.length,h=new RegExp("(^|\\s)("+e+")","gi"),i=new RegExp("<(/*)("+e+")","gi"),j=/^\s*[\{\}]\s*$/,k=new RegExp("(^|[^\\n]*?\\s)("+e+")([^\\n]*)({[\\n\\w\\W]*?})","gi"),l=b.createDocumentFragment(),m=b.documentElement,n=m.firstChild,o=b.createElement("body"),p=b.createElement("style"),q=/print|all/,r;d.getCSS=function(a,b){if(a+""===c)return"";var e=-1,f=a.length,g,h=[];while(++e<f){g=a[e];if(g.disabled)continue;b=g.media||b,q.test(b)&&h.push(d.getCSS(g.imports,b),g.cssText),b="all"}return h.join("")},d.parseCSS=function(a){var b=[],c;while((c=k.exec(a))!=null)b.push(((j.exec(c[1])?"\n":c[1])+c[2]+c[3]).replace(h,"$1.iepp_$2")+c[4]);return b.join("\n")},d.writeHTML=function(){var a=-1;r=r||b.body;while(++a<g){var c=b.getElementsByTagName(f[a]),d=c.length,e=-1;while(++e<d)c[e].className.indexOf("iepp_")<0&&(c[e].className+=" iepp_"+f[a])}l.appendChild(r),m.appendChild(o),o.className=r.className,o.id=r.id,o.innerHTML=r.innerHTML.replace(i,"<$1font")},d._beforePrint=function(){p.styleSheet.cssText=d.parseCSS(d.getCSS(b.styleSheets,"all")),d.writeHTML()},d.restoreHTML=function(){o.innerHTML="",m.removeChild(o),m.appendChild(r)},d._afterPrint=function(){d.restoreHTML(),p.styleSheet.cssText=""},s(b),s(l);d.disablePP||(n.insertBefore(p,n.firstChild),p.media="print",p.className="iepp-printshim",a.attachEvent("onbeforeprint",d._beforePrint),a.attachEvent("onafterprint",d._afterPrint))}(a,b),e._version=d,e._prefixes=n,e.testProp=function(a){return A([a])},e.testStyles=s,g.className=g.className.replace(/\bno-js\b/,"")+(f?" js "+r.join(" "):"");return e}(this,this.document),function(a,b,c){function k(a){return!a||a=="loaded"||a=="complete"}function j(){var a=1,b=-1;while(p.length- ++b)if(p[b].s&&!(a=p[b].r))break;a&&g()}function i(a){var c=b.createElement("script"),d;c.src=a.s,c.onreadystatechange=c.onload=function(){!d&&k(c.readyState)&&(d=1,j(),c.onload=c.onreadystatechange=null)},m(function(){d||(d=1,j())},H.errorTimeout),a.e?c.onload():n.parentNode.insertBefore(c,n)}function h(a){var c=b.createElement("link"),d;c.href=a.s,c.rel="stylesheet",c.type="text/css";if(!a.e&&(w||r)){var e=function(a){m(function(){if(!d)try{a.sheet.cssRules.length?(d=1,j()):e(a)}catch(b){b.code==1e3||b.message=="security"||b.message=="denied"?(d=1,m(function(){j()},0)):e(a)}},0)};e(c)}else c.onload=function(){d||(d=1,m(function(){j()},0))},a.e&&c.onload();m(function(){d||(d=1,j())},H.errorTimeout),!a.e&&n.parentNode.insertBefore(c,n)}function g(){var a=p.shift();q=1,a?a.t?m(function(){a.t=="c"?h(a):i(a)},0):(a(),j()):q=0}function f(a,c,d,e,f,h){function i(){!o&&k(l.readyState)&&(r.r=o=1,!q&&j(),l.onload=l.onreadystatechange=null,m(function(){u.removeChild(l)},0))}var l=b.createElement(a),o=0,r={t:d,s:c,e:h};l.src=l.data=c,!s&&(l.style.display="none"),l.width=l.height="0",a!="object"&&(l.type=d),l.onload=l.onreadystatechange=i,a=="img"?l.onerror=i:a=="script"&&(l.onerror=function(){r.e=r.r=1,g()}),p.splice(e,0,r),u.insertBefore(l,s?null:n),m(function(){o||(u.removeChild(l),r.r=r.e=o=1,j())},H.errorTimeout)}function e(a,b,c){var d=b=="c"?z:y;q=0,b=b||"j",C(a)?f(d,a,b,this.i++,l,c):(p.splice(this.i++,0,a),p.length==1&&g());return this}function d(){var a=H;a.loader={load:e,i:0};return a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=r&&!s,u=s?l:n.parentNode,v=a.opera&&o.call(a.opera)=="[object Opera]",w="webkitAppearance"in l.style,x=w&&"async"in b.createElement("script"),y=r?"object":v||x?"img":"script",z=w?"img":y,A=Array.isArray||function(a){return o.call(a)=="[object Array]"},B=function(a){return Object(a)===a},C=function(a){return typeof a=="string"},D=function(a){return o.call(a)=="[object Function]"},E=[],F={},G,H;H=function(a){function f(a){var b=a.split("!"),c=E.length,d=b.pop(),e=b.length,f={url:d,origUrl:d,prefixes:b},g,h;for(h=0;h<e;h++)g=F[b[h]],g&&(f=g(f));for(h=0;h<c;h++)f=E[h](f);return f}function e(a,b,e,g,h){var i=f(a),j=i.autoCallback;if(!i.bypass){b&&(b=D(b)?b:b[a]||b[g]||b[a.split("/").pop().split("?")[0]]);if(i.instead)return i.instead(a,b,e,g,h);e.load(i.url,i.forceCSS||!i.forceJS&&/css$/.test(i.url)?"c":c,i.noexec),(D(b)||D(j))&&e.load(function(){d(),b&&b(i.origUrl,h,g),j&&j(i.origUrl,h,g)})}}function b(a,b){function c(a){if(C(a))e(a,h,b,0,d);else if(B(a))for(i in a)a.hasOwnProperty(i)&&e(a[i],h,b,i,d)}var d=!!a.test,f=d?a.yep:a.nope,g=a.load||a.both,h=a.callback,i;c(f),c(g),a.complete&&b.load(a.complete)}var g,h,i=this.yepnope.loader;if(C(a))e(a,0,i,0);else if(A(a))for(g=0;g<a.length;g++)h=a[g],C(h)?e(h,0,i,0):A(h)?H(h):B(h)&&b(h,i);else B(a)&&b(a,i)},H.addPrefix=function(a,b){F[a]=b},H.addFilter=function(a){E.push(a)},H.errorTimeout=1e4,b.readyState==null&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",G=function(){b.removeEventListener("DOMContentLoaded",G,0),b.readyState="complete"},0)),a.yepnope=d()}(this,this.document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};
| + | |
| + | //初始化状态 |
| + | cutover(); |
| + | |
| + | //按钮点击切换 |
| + | for (i = 0; i < aBtn.length; i++) |
| + | { |
| + | aBtn[i].index = i; |
| + | aBtn[i].onmouseover = function () |
| + | { |
| + | index = this.index; |
| + | cutover() |
| + | } |
| + | } |
| + | |
| + | function cutover() |
| + | { |
| + | for (i = 0; i < aBtn.length; i++) aBtn[i].className = ""; |
| + | aBtn[index].className = "current"; |
| + | startMove(-(index * aImg[0].offsetHeight)) |
| + | } |
| + | |
| + | function next() |
| + | { |
| + | bOrder ? index++ : index--; |
| + | index <= 0 && (index = 0, bOrder = true); |
| + | index >= aBtn.length - 1 && (index = aBtn.length - 1, bOrder = false) |
| + | cutover() |
| + | } |
| + | |
| + | playTimer = setInterval(next, 3000); |
| + | |
| + | //鼠标移入展示区停止自动播放 |
| + | oBox.onmouseover = function () |
| + | { |
| + | clearInterval(playTimer) |
| + | }; |
| + | |
| + | //鼠标离开展示区开始自动播放 |
| + | oBox.onmouseout = function () |
| + | { |
| + | playTimer = setInterval(next, 3000) |
| + | }; |
| + | function startMove(iTarget) |
| + | { |
| + | clearInterval(timer); |
| + | timer = setInterval(function () |
| + | { |
| + | doMove(iTarget) |
| + | }, 30) |
| + | } |
| + | function doMove (iTarget) |
| + | { |
| + | var iSpeed = (iTarget - oList.offsetTop) / 10; |
| + | iSpeed = iSpeed > 0 ? Math.ceil(iSpeed) : Math.floor(iSpeed); |
| + | oList.offsetTop == iTarget ? clearInterval(timer) : oList.style.top = oList.offsetTop + iSpeed + "px" |
| + | } |
| + | }; |
| </script> | | </script> |
- | <script type="text/javascript">
| |
- | //DON'T ADD THIS TO YOUR SITE! PLEASE DOWNLOAD THE ZIP AND DON'T COPY THIS PAGE!
| |
- | var _gaq = _gaq || [];
| |
- | _gaq.push(['_setAccount', 'UA-7243260-2']);
| |
- | _gaq.push(['_trackPageview']);
| |
| | | |
- | (function() {
| + | <body> |
- | var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | + | <div id="background11"> |
- | ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
| + | <div id="picture"> |
- | var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
| + | <div id="box"> |
- | })();
| + | <div class="list"> |
| + | <ul> |
| + | <li><img src="" width="525" height="395" /></li> |
| + | <li><img src="" width="525" height="395" /></li> |
| + | <li><img src="" width="525" height="395" /></li> |
| + | </ul> |
| + | </div> |
| + | </div> |
| | | |
- | </script>
| + | </div> |
- | </head> | + | <div id="paragraphs00"> |
- | <body> | + | <div id="paragraphs01"> |
- | <div class="container">
| + | <div id="para1"> |
- | <div class="demos">
| + | <div id="paragraphs02"> |
- | <a class="current-demo" href="https://2013.igem.org/Team:HZAU-China/Home">Home</a>
| + | <center><span style="font-size:30px;font-weight:bold;font-family:Cambria;color:#ffd017;">Our Project</span></center> |
- | </div>
| + | </div> |
- | <h2 class="ss-subtitle">HZAU-China Timeline</h2>
| + | <div id="para2"> |
- | <div id="ss-links" class="ss-links">
| + | <p>The idea comes from Yersinia pestis and fleas. We make use of fleas as our moving injector. When flea feed blood from dogs, our vaccine vector Bacillus subtilis will be regurgitated into blood and successfully transferred to mammalian host. Bacillus subtilis can express antigens which can stimulate the immunity of dogs. Meanwhile, endogenous or exogenous expression of "Antimicrobial Peptides" by B. subtilis can kill Yersinia pestis in fleas. In this way we achieved a safe moving vaccine factory.</p> |
- | <a href="#november">Nov</a>
| + | </div> |
- | <a href="#october">Oct</a>
| + | </div> |
- | <a href="#september">Sep</a>
| + | </div> |
- | <a href="#august">Aug</a>
| + | </div> |
- | <a href="#july">Jul</a>
| + | </div> |
- | <a href="#june">Jun</a>
| + | |
- | </div>
| + | |
- | <div id="ss-container" class="ss-container">
| + | |
- | <div class="ss-row">
| + | |
- | <div class="ss-left">
| + | |
- | <h2 id="november">November</h2>
| + | |
- | </div>
| + | |
- | <div class="ss-right">
| + | |
- | <h2>2011</h2>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | <div class="ss-row ss-medium">
| + | |
- | <div class="ss-left">
| + | |
- | <a href="http://tympanus.net/Tutorials/TypographyEffects/" class="ss-circle ss-circle-1">Typography Effects with CSS3 and jQuery</a>
| + | |
- | </div>
| + | |
- | <div class="ss-right">
| + | |
- | <h3>
| + | |
- | <span>November 28, 2011</span>
| + | |
- | <a href="http://tympanus.net/Tutorials/TypographyEffects/">Typography Effects with CSS3 and jQuery</a>
| + | |
- | </h3>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | <div class="ss-row ss-large">
| + | |
- | <div class="ss-left">
| + | |
- | <h3>
| + | |
- | <span>November 22, 2011</span>
| + | |
- | <a href="http://tympanus.net/Development/HoverClickTriggerCircle/">Hover and Click Trigger for Circular Elements with jQuery</a>
| + | |
- | </h3>
| + | |
- | </div>
| + | |
- | <div class="ss-right">
| + | |
- | <a href="http://tympanus.net/Development/HoverClickTriggerCircle/" class="ss-circle ss-circle-2">Hover and Click Trigger for Circular Elements with jQuery</a>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | <div class="ss-row ss-small">
| + | |
- | <div class="ss-left">
| + | |
- | <a href="http://tympanus.net/Tutorials/ElasticSlideshow/" class="ss-circle ss-circle-3">Elastic Image Slideshow with Thumbnail Preview</a>
| + | |
- | </div>
| + | |
- | <div class="ss-right">
| + | |
- | <h3>
| + | |
- | <span>November 21, 2011</span>
| + | |
- | <a href="http://tympanus.net/Tutorials/ElasticSlideshow/">Elastic Image Slideshow with Thumbnail Preview</a>
| + | |
- | </h3>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | <div class="ss-row ss-medium">
| + | |
- | <div class="ss-left">
| + | |
- | <h3>
| + | |
- | <span>November 18, 2011</span>
| + | |
- | <a href="http://tympanus.net/Development/FullscreenImageBlurEffect/">Fullscreen Image Blur Effect with HTML5</a>
| + | |
- | </h3>
| + | |
- | </div>
| + | |
- | <div class="ss-right">
| + | |
- | <a href="http://tympanus.net/Development/FullscreenImageBlurEffect/" class="ss-circle ss-circle-4">Fullscreen Image Blur Effect with HTML5</a>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | <div class="ss-row ss-large">
| + | |
- | <div class="ss-left">
| + | |
- | <a href="http://tympanus.net/Tutorials/InteractiveTypographyEffects/" class="ss-circle ss-circle-5">Interactive Typography Effects with HTML5</a>
| + | |
- | </div>
| + | |
- | <div class="ss-right">
| + | |
- | <h3>
| + | |
- | <span>November 9, 2011</span>
| + | |
- | <a href="http://tympanus.net/Tutorials/InteractiveTypographyEffects/">Interactive Typography Effects with HTML5</a>
| + | |
- | </h3>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | <div class="ss-row ss-small">
| + | |
- | <div class="ss-left">
| + | |
- | <a href="http://tympanus.net/Tutorials/AnimatedButtons/" class="ss-circle ss-circle-6">Animated Buttons with CSS3</a>
| + | |
- | </div>
| + | |
- | <div class="ss-right">
| + | |
- | <h3>
| + | |
- | <span>November 7, 2011</span>
| + | |
- | <a href="http://tympanus.net/Tutorials/AnimatedButtons/">Animated Buttons with CSS3</a>
| + | |
- | </h3>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | <div class="ss-row ss-medium">
| + | |
- | <div class="ss-left">
| + | |
- | <h3>
| + | |
- | <span>November 2, 2011</span>
| + | |
- | <a href="http://tympanus.net/Tutorials/OriginalHoverEffects/">Original Hover Effects with CSS3</a>
| + | |
- | </h3>
| + | |
- | </div>
| + | |
- | <div class="ss-right">
| + | |
- | <a href="http://tympanus.net/Tutorials/OriginalHoverEffects/" class="ss-circle ss-circle-7">Original Hover Effects with CSS3</a>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | <div class="ss-row">
| + | |
- | <div class="ss-left">
| + | |
- | <h2 id="october">October</h2>
| + | |
- | </div>
| + | |
- | <div class="ss-right">
| + | |
- | <h2>2011</h2>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | <div class="ss-row ss-small">
| + | |
- | <div class="ss-left">
| + | |
- | <h3>
| + | |
- | <span>October 31, 2011</span>
| + | |
- | <a href="http://tympanus.net/Development/FullscreenImage3DEffect/">Fullscreen Image 3D Effect with CSS3 and jQuery</a>
| + | |
- | </h3>
| + | |
- | </div>
| + | |
- | <div class="ss-right">
| + | |
- | <a href="http://tympanus.net/Development/FullscreenImage3DEffect/" class="ss-circle ss-circle-8">Fullscreen Image 3D Effect with CSS3 and jQuery</a>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | <div class="ss-row ss-large">
| + | |
- | <div class="ss-left">
| + | |
- | <a href="http://tympanus.net/Tutorials/CreativeCSS3AnimationMenus/" class="ss-circle ss-circle-9">Creative CSS3 Animation Menus</a>
| + | |
- | </div>
| + | |
- | <div class="ss-right">
| + | |
- | <h3>
| + | |
- | <span>October 24, 2011</span>
| + | |
- | <a href="http://tympanus.net/Tutorials/CreativeCSS3AnimationMenus/">Creative CSS3 Animation Menus</a>
| + | |
- | </h3>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | <div class="ss-row ss-medium">
| + | |
- | <div class="ss-left">
| + | |
- | <a href="http://tympanus.net/Tutorials/BlurMenu/" class="ss-circle ss-circle-10">Blur Menu with CSS3 Transitions</a>
| + | |
- | </div>
| + | |
- | <div class="ss-right">
| + | |
- | <h3>
| + | |
- | <span>October 19, 2011</span>
| + | |
- | <a href="http://tympanus.net/Tutorials/BlurMenu/">Blur Menu with CSS3 Transitions</a>
| + | |
- | </h3>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | <div class="ss-row ss-large">
| + | |
- | <div class="ss-left">
| + | |
- | <h3>
| + | |
- | <span>October 17, 2011</span>
| + | |
- | <a href="http://tympanus.net/Development/WaveDisplayEffect/">Wave Display Effect with jQuery</a>
| + | |
- | </h3>
| + | |
- | </div>
| + | |
- | <div class="ss-right">
| + | |
- | <a href="http://tympanus.net/Development/WaveDisplayEffect/" class="ss-circle ss-circle-11">Wave Display Effect with jQuery</a>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | <div class="ss-row ss-small">
| + | |
- | <div class="ss-left">
| + | |
- | <a href="http://tympanus.net/Tutorials/FlexibleSlideToTopAccordion/" class="ss-circle ss-circle-12">Flexible Slide-to-top Accordion</a>
| + | |
- | </div>
| + | |
- | <div class="ss-right">
| + | |
- | <h3>
| + | |
- | <span>October 12, 2011</span>
| + | |
- | <a href="http://tympanus.net/Tutorials/FlexibleSlideToTopAccordion/">Flexible Slide-to-top Accordion</a>
| + | |
- | </h3>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | <div class="ss-row ss-medium">
| + | |
- | <div class="ss-left">
| + | |
- | <h3>
| + | |
- | <span>October 10, 2011</span>
| + | |
- | <a href="http://tympanus.net/Tutorials/CircleNavigationEffect/">Circle Navigation Effect with CSS3</a>
| + | |
- | </h3>
| + | |
- | </div>
| + | |
- | <div class="ss-right">
| + | |
- | <a href="http://tympanus.net/Tutorials/CircleNavigationEffect/" class="ss-circle ss-circle-13">Circle Navigation Effect with CSS3</a>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | <div class="ss-row ss-large">
| + | |
- | <div class="ss-left">
| + | |
- | <a href="http://tympanus.net/Tutorials/DraggableImageBoxesGrid/" class="ss-circle ss-circle-14">Draggable Image Boxes Grid</a>
| + | |
- | </div>
| + | |
- | <div class="ss-right">
| + | |
- | <h3>
| + | |
- | <span>October 7, 2011</span>
| + | |
- | <a href="http://tympanus.net/Tutorials/DraggableImageBoxesGrid/">Draggable Image Boxes Grid</a>
| + | |
- | </h3>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | <div class="ss-row">
| + | |
- | <div class="ss-left">
| + | |
- | <h2 id="september">September</h2>
| + | |
- | </div>
| + | |
- | <div class="ss-right">
| + | |
- | <h2>2011</h2>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | <div class="ss-row ss-small">
| + | |
- | <div class="ss-left">
| + | |
- | <h3>
| + | |
- | <span>September 30, 2011</span>
| + | |
- | <a href="http://tympanus.net/Tutorials/ScrollbarVisibility/">Scrollbar Visibility with jScrollPane</a>
| + | |
- | </h3>
| + | |
- | </div>
| + | |
- | <div class="ss-right">
| + | |
- | <a href="http://tympanus.net/Tutorials/ScrollbarVisibility/" class="ss-circle ss-circle-15">Scrollbar Visibility with jScrollPane</a>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | <div class="ss-row ss-medium">
| + | |
- | <div class="ss-left">
| + | |
- | <a href="http://tympanus.net/Development/MultiLevelPhotoMap/" class="ss-circle ss-circle-16">Multi-level Photo Map</a>
| + | |
- | </div>
| + | |
- | <div class="ss-right">
| + | |
- | <h3>
| + | |
- | <span>September 27, 2011</span>
| + | |
- | <a href="http://tympanus.net/Development/MultiLevelPhotoMap/">Multi-level Photo Map</a>
| + | |
- | </h3>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | <div class="ss-row ss-large">
| + | |
- | <div class="ss-left">
| + | |
- | <a href="http://tympanus.net/Tutorials/ResponsiveImageGallery/" class="ss-circle ss-circle-17">Responsive Image Gallery with Thumbnail Carousel</a>
| + | |
- | </div>
| + | |
- | <div class="ss-right">
| + | |
- | <h3>
| + | |
- | <span>September 20, 2011</span>
| + | |
- | <a href="http://tympanus.net/Tutorials/ResponsiveImageGallery/">Responsive Image Gallery with Thumbnail Carousel</a>
| + | |
- | </h3>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | <div class="ss-row ss-small">
| + | |
- | <div class="ss-left">
| + | |
- | <h3>
| + | |
- | <span>September 12, 2011</span>
| + | |
- | <a href="http://tympanus.net/Development/Elastislide/">Elastislide - A Responsive jQuery Carousel Plugin</a>
| + | |
- | </h3>
| + | |
- | </div>
| + | |
- | <div class="ss-right">
| + | |
- | <a href="http://tympanus.net/Development/Elastislide/" class="ss-circle ss-circle-18">Elastislide - A Responsive jQuery Carousel Plugin</a>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | <div class="ss-row ss-medium">
| + | |
- | <div class="ss-left">
| + | |
- | <a href="http://tympanus.net/Development/Slicebox/" class="ss-circle ss-circle-19">Slicebox - A fresh 3D image slider with graceful fallback </a>
| + | |
- | </div>
| + | |
- | <div class="ss-right">
| + | |
- | <h3>
| + | |
- | <span>September 5, 2011</span>
| + | |
- | <a href="http://tympanus.net/Development/Slicebox/">Slicebox - A fresh 3D image slider with graceful fallback </a>
| + | |
- | </h3>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | <div class="ss-row">
| + | |
- | <div class="ss-left">
| + | |
- | <h2 id="august">August</h2>
| + | |
- | </div>
| + | |
- | <div class="ss-right">
| + | |
- | <h2>2011</h2>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | <div class="ss-row ss-large">
| + | |
- | <div class="ss-left">
| + | |
- | <h3>
| + | |
- | <span>August 30, 2011</span>
| + | |
- | <a href="http://tympanus.net/Development/AutomaticImageMontage/">Automatic Image Montage with jQuery</a>
| + | |
- | </h3>
| + | |
- | </div>
| + | |
- | <div class="ss-right">
| + | |
- | <a href="http://tympanus.net/Development/AutomaticImageMontage/" class="ss-circle ss-circle-20">Automatic Image Montage with jQuery</a>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | <div class="ss-row ss-medium">
| + | |
- | <div class="ss-left">
| + | |
- | <a href="http://tympanus.net/Development/ImageZoomTour/" class="ss-circle ss-circle-21">Image Zoom Tour with jQuery</a>
| + | |
- | </div>
| + | |
- | <div class="ss-right">
| + | |
- | <h3>
| + | |
- | <span>August 23, 2011</span>
| + | |
- | <a href="http://tympanus.net/Development/ImageZoomTour/">Image Zoom Tour with jQuery</a>
| + | |
- | </h3>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | <div class="ss-row ss-small">
| + | |
- | <div class="ss-left">
| + | |
- | <h3>
| + | |
- | <span>August 16, 2011</span>
| + | |
- | <a href="http://tympanus.net/Development/CircularContentCarousel/">Circular Content Carousel with jQuery</a>
| + | |
- | </h3>
| + | |
- | </div>
| + | |
- | <div class="ss-right">
| + | |
- | <a href="http://tympanus.net/Development/CircularContentCarousel/" class="ss-circle ss-circle-22">Circular Content Carousel with jQuery</a>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | <div class="ss-row ss-large">
| + | |
- | <div class="ss-left">
| + | |
- | <a href="http://tympanus.net/Tutorials/PortfolioImageNavigation/" class="ss-circle ss-circle-23">Portfolio Image Navigation with jQuery</a>
| + | |
- | </div>
| + | |
- | <div class="ss-right">
| + | |
- | <h3>
| + | |
- | <span>August 9, 2011</span>
| + | |
- | <a href="http://tympanus.net/Tutorials/PortfolioImageNavigation/">Portfolio Image Navigation with jQuery</a>
| + | |
- | </h3>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | <div class="ss-row ss-medium">
| + | |
- | <div class="ss-left">
| + | |
- | <h3>
| + | |
- | <span>August 4, 2011</span>
| + | |
- | <a href="http://tympanus.net/Development/FullscreenGridPortfolioTemplate/">Expanding Fullscreen Grid Portfolio</a>
| + | |
- | </h3>
| + | |
- | </div>
| + | |
- | <div class="ss-right">
| + | |
- | <a href="http://tympanus.net/Development/FullscreenGridPortfolioTemplate/" class="ss-circle ss-circle-24">Expanding Fullscreen Grid Portfolio</a>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | <div class="ss-row">
| + | |
- | <div class="ss-left">
| + | |
- | <h2 id="july">July</h2>
| + | |
- | </div>
| + | |
- | <div class="ss-right">
| + | |
- | <h2>2011</h2>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | <div class="ss-row ss-small">
| + | |
- | <div class="ss-left">
| + | |
- | <a href="http://tympanus.net/Development/ContentRotator/example1.html" class="ss-circle ss-circle-25">Content Rotator with jQuery</a>
| + | |
- | </div>
| + | |
- | <div class="ss-right">
| + | |
- | <h3>
| + | |
- | <span>July 29, 2011</span>
| + | |
- | <a href="http://tympanus.net/Development/ContentRotator/example1.html">Content Rotator with jQuery</a>
| + | |
- | </h3>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | <div class="ss-row ss-large">
| + | |
- | <div class="ss-left">
| + | |
- | <h3>
| + | |
- | <span>July 22, 2011</span>
| + | |
- | <a href="http://tympanus.net/Development/VerticalSlidingAccordion/example1.html">Vertical Sliding Accordion with jQuery</a>
| + | |
- | </h3>
| + | |
- | </div>
| + | |
- | <div class="ss-right">
| + | |
- | <a href="http://tympanus.net/Development/VerticalSlidingAccordion/example1.html" class="ss-circle ss-circle-26">Vertical Sliding Accordion with jQuery</a>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | <div class="ss-row ss-medium">
| + | |
- | <div class="ss-left">
| + | |
- | <a href="http://tympanus.net/Tutorials/AnimatedTextIconMenu/example1.html" class="ss-circle ss-circle-27">Animated Text and Icon Menu with jQuery</a>
| + | |
- | </div>
| + | |
- | <div class="ss-right">
| + | |
- | <h3>
| + | |
- | <span>July 12, 2011</span>
| + | |
- | <a href="http://tympanus.net/Tutorials/AnimatedTextIconMenu/example1.html">Animated Text and Icon Menu with jQuery</a>
| + | |
- | </h3>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | <div class="ss-row ss-small">
| + | |
- | <div class="ss-left">
| + | |
- | <h3>
| + | |
- | <span>July 5, 2011</span>
| + | |
- | <a href="http://tympanus.net/Tutorials/FullscreenSlideshowAudio/">Fullscreen Slideshow with HTML5 Audio and jQuery</a>
| + | |
- | </h3>
| + | |
- | </div>
| + | |
- | <div class="ss-right">
| + | |
- | <a href="http://tympanus.net/Tutorials/FullscreenSlideshowAudio/" class="ss-circle ss-circle-30">Fullscreen Slideshow with HTML5 Audio and jQuery</a>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | <div class="ss-row ss-large">
| + | |
- | <div class="ss-left">
| + | |
- | <a href="http://tympanus.net/Development/SlidingBackgroundImageMenu/example5.html" class="ss-circle ss-circle-28">Sliding Background Image Menu with jQuery</a>
| + | |
- | </div>
| + | |
- | <div class="ss-right">
| + | |
- | <h3>
| + | |
- | <span>July 3, 2011</span>
| + | |
- | <a href="http://tympanus.net/Development/SlidingBackgroundImageMenu/example5.html">Sliding Background Image Menu with jQuery</a>
| + | |
- | </h3>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | <div class="ss-row">
| + | |
- | <div class="ss-left">
| + | |
- | <h2 id="june">June</h2>
| + | |
- | </div>
| + | |
- | <div class="ss-right">
| + | |
- | <h2>2011</h2>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | <div class="ss-row ss-small">
| + | |
- | <div class="ss-left">
| + | |
- | <h3>
| + | |
- | <span>June 9, 2011</span>
| + | |
- | <a href="http://tympanus.net/Development/GridNavigationEffects/example5.html">Grid Navigation Effects with jQuery</a>
| + | |
- | </h3>
| + | |
- | </div>
| + | |
- | <div class="ss-right">
| + | |
- | <a href="http://tympanus.net/Development/GridNavigationEffects/example5.html" class="ss-circle ss-circle-29">Grid Navigation Effects with jQuery</a>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | </div>
| + | |
- | <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
| + | |
- | <script type="text/javascript" src="js/jquery.easing.1.3.js"></script>
| + | |
- | <script type="text/javascript">
| + | |
- | $(function() {
| + | |
| | | |
- | var $sidescroll = (function() {
| + | <div id="background12"> |
- |
| + | <div id="sidebar"> |
- | // the row elements
| + | <div id="sidebar3"> |
- | var $rows = $('#ss-container > div.ss-row'),
| + | <p style="font-family:Arial,Helvetica,sans-serif;font-size:30px;font-color:#fff;text-align:center;padding:20px; margin:0px;"><a href=""></a></p> |
- | // we will cache the inviewport rows and the outside viewport rows
| + | </div> |
- | $rowsViewport, $rowsOutViewport,
| + | <div id="sidebar4"> |
- | // navigation menu links
| + | <p style="font-family:Arial,Helvetica,sans-serif;font-size:17px;font-color:#000;text-align:justify;padding:10px; margin:0px;"></p> |
- | $links = $('#ss-links > a'),
| + | </div> |
- | // the window element
| + | </div> |
- | $win = $(window),
| + | |
- | // we will store the window sizes here
| + | |
- | winSize = {},
| + | |
- | // used in the scroll setTimeout function
| + | |
- | anim = false,
| + | |
- | // page scroll speed
| + | |
- | scollPageSpeed = 2000 ,
| + | |
- | // page scroll easing
| + | |
- | scollPageEasing = 'easeInOutExpo',
| + | |
- | // perspective?
| + | |
- | hasPerspective = false,
| + | |
- |
| + | |
- | perspective = hasPerspective && Modernizr.csstransforms3d,
| + | |
- | // initialize function
| + | |
- | init = function() {
| + | |
- |
| + | |
- | // get window sizes
| + | |
- | getWinSize();
| + | |
- | // initialize events
| + | |
- | initEvents();
| + | |
- | // define the inviewport selector
| + | |
- | defineViewport();
| + | |
- | // gets the elements that match the previous selector
| + | |
- | setViewportRows();
| + | |
- | // if perspective add css
| + | |
- | if( perspective ) {
| + | |
- | $rows.css({
| + | |
- | '-webkit-perspective' : 600,
| + | |
- | '-webkit-perspective-origin' : '50% 0%'
| + | |
- | });
| + | |
- | }
| + | |
- | // show the pointers for the inviewport rows
| + | |
- | $rowsViewport.find('a.ss-circle').addClass('ss-circle-deco');
| + | |
- | // set positions for each row
| + | |
- | placeRows();
| + | |
- |
| + | |
- | },
| + | |
- | // defines a selector that gathers the row elems that are initially visible.
| + | |
- | // the element is visible if its top is less than the window's height.
| + | |
- | // these elements will not be affected when scrolling the page.
| + | |
- | defineViewport = function() {
| + | |
- |
| + | |
- | $.extend( $.expr[':'], {
| + | |
- |
| + | |
- | inviewport : function ( el ) {
| + | |
- | if ( $(el).offset().top < winSize.height ) {
| + | |
- | return true;
| + | |
- | }
| + | |
- | return false;
| + | |
- | }
| + | |
- |
| + | |
- | });
| + | |
- |
| + | |
- | },
| + | |
- | // checks which rows are initially visible
| + | |
- | setViewportRows = function() {
| + | |
- |
| + | |
- | $rowsViewport = $rows.filter(':inviewport');
| + | |
- | $rowsOutViewport = $rows.not( $rowsViewport )
| + | |
- |
| + | |
- | },
| + | |
- | // get window sizes
| + | |
- | getWinSize = function() {
| + | |
- |
| + | |
- | winSize.width = $win.width();
| + | |
- | winSize.height = $win.height();
| + | |
- |
| + | |
- | },
| + | |
- | // initialize some events
| + | |
- | initEvents = function() {
| + | |
- |
| + | |
- | // navigation menu links.
| + | |
- | // scroll to the respective section.
| + | |
- | $links.on( 'click.Scrolling', function( event ) {
| + | |
- |
| + | |
- | // scroll to the element that has id = menu's href
| + | |
- | $('html, body').stop().animate({
| + | |
- | scrollTop: $( $(this).attr('href') ).offset().top
| + | |
- | }, scollPageSpeed, scollPageEasing );
| + | |
- |
| + | |
- | return false;
| + | |
- |
| + | |
- | });
| + | |
- |
| + | |
- | $(window).on({
| + | |
- | // on window resize we need to redefine which rows are initially visible (this ones we will not animate).
| + | |
- | 'resize.Scrolling' : function( event ) {
| + | |
- |
| + | |
- | // get the window sizes again
| + | |
- | getWinSize();
| + | |
- | // redefine which rows are initially visible (:inviewport)
| + | |
- | setViewportRows();
| + | |
- | // remove pointers for every row
| + | |
- | $rows.find('a.ss-circle').removeClass('ss-circle-deco');
| + | |
- | // show inviewport rows and respective pointers
| + | |
- | $rowsViewport.each( function() {
| + | |
- |
| + | |
- | $(this).find('div.ss-left')
| + | |
- | .css({ left : '0%' })
| + | |
- | .end()
| + | |
- | .find('div.ss-right')
| + | |
- | .css({ right : '0%' })
| + | |
- | .end()
| + | |
- | .find('a.ss-circle')
| + | |
- | .addClass('ss-circle-deco');
| + | |
- |
| + | |
- | });
| + | |
- |
| + | |
- | },
| + | |
- | // when scrolling the page change the position of each row
| + | |
- | 'scroll.Scrolling' : function( event ) {
| + | |
- |
| + | |
- | // set a timeout to avoid that the
| + | |
- | // placeRows function gets called on every scroll trigger
| + | |
- | if( anim ) return false;
| + | |
- | anim = true;
| + | |
- | setTimeout( function() {
| + | |
- |
| + | |
- | placeRows();
| + | |
- | anim = false;
| + | |
- |
| + | |
- | }, 10 );
| + | |
- |
| + | |
- | }
| + | |
- | });
| + | |
- |
| + | |
- | },
| + | |
- | // sets the position of the rows (left and right row elements).
| + | |
- | // Both of these elements will start with -50% for the left/right (not visible)
| + | |
- | // and this value should be 0% (final position) when the element is on the
| + | |
- | // center of the window.
| + | |
- | placeRows = function() {
| + | |
- |
| + | |
- | // how much we scrolled so far
| + | |
- | var winscroll = $win.scrollTop(),
| + | |
- | // the y value for the center of the screen
| + | |
- | winCenter = winSize.height / 2 + winscroll;
| + | |
- |
| + | |
- | // for every row that is not inviewport
| + | |
- | $rowsOutViewport.each( function(i) {
| + | |
- |
| + | |
- | var $row = $(this),
| + | |
- | // the left side element
| + | |
- | $rowL = $row.find('div.ss-left'),
| + | |
- | // the right side element
| + | |
- | $rowR = $row.find('div.ss-right'),
| + | |
- | // top value
| + | |
- | rowT = $row.offset().top;
| + | |
- |
| + | |
- | // hide the row if it is under the viewport
| + | |
- | if( rowT > winSize.height + winscroll ) {
| + | |
- |
| + | |
- | if( perspective ) {
| + | |
- |
| + | |
- | $rowL.css({
| + | |
- | '-webkit-transform' : 'translate3d(-75%, 0, 0) rotateY(-90deg) translate3d(-75%, 0, 0)',
| + | |
- | 'opacity' : 0
| + | |
- | });
| + | |
- | $rowR.css({
| + | |
- | '-webkit-transform' : 'translate3d(75%, 0, 0) rotateY(90deg) translate3d(75%, 0, 0)',
| + | |
- | 'opacity' : 0
| + | |
- | });
| + | |
- |
| + | |
- | }
| + | |
- | else {
| + | |
- |
| + | |
- | $rowL.css({ left : '-50%' });
| + | |
- | $rowR.css({ right : '-50%' });
| + | |
- |
| + | |
- | }
| + | |
- |
| + | |
- | }
| + | |
- | // if not, the row should become visible (0% of left/right) as it gets closer to the center of the screen.
| + | |
- | else {
| + | |
- |
| + | |
- | // row's height
| + | |
- | var rowH = $row.height(),
| + | |
- | // the value on each scrolling step will be proporcional to the distance from the center of the screen to its height
| + | |
- | factor = ( ( ( rowT + rowH / 2 ) - winCenter ) / ( winSize.height / 2 + rowH / 2 ) ),
| + | |
- | // value for the left / right of each side of the row.
| + | |
- | // 0% is the limit
| + | |
- | val = Math.max( factor * 50, 0 );
| + | |
- |
| + | |
- | if( val <= 0 ) {
| + | |
- |
| + | |
- | // when 0% is reached show the pointer for that row
| + | |
- | if( !$row.data('pointer') ) {
| + | |
- |
| + | |
- | $row.data( 'pointer', true );
| + | |
- | $row.find('.ss-circle').addClass('ss-circle-deco');
| + | |
- |
| + | |
- | }
| + | |
- |
| + | |
- | }
| + | |
- | else {
| + | |
- |
| + | |
- | // the pointer should not be shown
| + | |
- | if( $row.data('pointer') ) {
| + | |
- |
| + | |
- | $row.data( 'pointer', false );
| + | |
- | $row.find('.ss-circle').removeClass('ss-circle-deco');
| + | |
- |
| + | |
- | }
| + | |
- |
| + | |
- | }
| + | |
- |
| + | |
- | // set calculated values
| + | |
- | if( perspective ) {
| + | |
- |
| + | |
- | var t = Math.max( factor * 75, 0 ),
| + | |
- | r = Math.max( factor * 90, 0 ),
| + | |
- | o = Math.min( Math.abs( factor - 1 ), 1 );
| + | |
- |
| + | |
- | $rowL.css({
| + | |
- | '-webkit-transform' : 'translate3d(-' + t + '%, 0, 0) rotateY(-' + r + 'deg) translate3d(-' + t + '%, 0, 0)',
| + | |
- | 'opacity' : o
| + | |
- | });
| + | |
- | $rowR.css({
| + | |
- | '-webkit-transform' : 'translate3d(' + t + '%, 0, 0) rotateY(' + r + 'deg) translate3d(' + t + '%, 0, 0)',
| + | |
- | 'opacity' : o
| + | |
- | });
| + | |
- |
| + | |
- | }
| + | |
- | else {
| + | |
- |
| + | |
- | $rowL.css({ left : - val + '%' });
| + | |
- | $rowR.css({ right : - val + '%' });
| + | |
- |
| + | |
- | }
| + | |
- |
| + | |
- | }
| + | |
- |
| + | |
- | });
| + | |
- |
| + | |
- | };
| + | |
- |
| + | |
- | return { init : init };
| + | |
- |
| + | |
- | })();
| + | |
- |
| + | |
- | $sidescroll.init();
| + | |
- |
| + | |
- | });
| + | |
- | </script>
| + | |
- | <script>
| + | |
- | /* | + | |
- | * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
| + | |
- | *
| + | |
- | * Uses the built in easing capabilities added In jQuery 1.1
| + | |
- | * to offer multiple easing options
| + | |
- | *
| + | |
- | * TERMS OF USE - jQuery Easing
| + | |
- | *
| + | |
- | * Open source under the BSD License.
| + | |
- | *
| + | |
- | * Copyright 漏 2008 George McGinley Smith
| + | |
- | * All rights reserved.
| + | |
- | *
| + | |
- | * Redistribution and use in source and binary forms, with or without modification,
| + | |
- | * are permitted provided that the following conditions are met:
| + | |
- | *
| + | |
- | * Redistributions of source code must retain the above copyright notice, this list of
| + | |
- | * conditions and the following disclaimer.
| + | |
- | * Redistributions in binary form must reproduce the above copyright notice, this list
| + | |
- | * of conditions and the following disclaimer in the documentation and/or other materials
| + | |
- | * provided with the distribution.
| + | |
- | *
| + | |
- | * Neither the name of the author nor the names of contributors may be used to endorse
| + | |
- | * or promote products derived from this software without specific prior written permission.
| + | |
- | *
| + | |
- | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
| + | |
- | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
| + | |
- | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
| + | |
- | * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
| + | |
- | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
| + | |
- | * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
| + | |
- | * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
| + | |
- | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
| + | |
- | * OF THE POSSIBILITY OF SUCH DAMAGE.
| + | |
- | *
| + | |
- | */
| + | |
| | | |
- | // t: current time, b: begInnIng value, c: change In value, d: duration
| + | <div id="sidebar"> |
- | jQuery.easing['jswing'] = jQuery.easing['swing'];
| + | <div id="sidebar1"> |
| + | <p style="font-family:Arial,Helvetica,sans-serif;font-size:30px;font-color:#fff;text-align:center;padding:20px; margin:0px;"><a href=""></a></p> |
| + | </div> |
| + | <div id="sidebar2"> |
| + | <p style="font-family:Arial,Helvetica,sans-serif;font-size:17px;font-color:#000;text-align:justify;padding:10px; margin:0px;"> </p> |
| + | </div> |
| + | </div> |
| | | |
- | jQuery.extend( jQuery.easing,
| + | <div id="sidebar"> |
- | {
| + | <div id="sidebar3"> |
- | def: 'easeOutQuad',
| + | <p style="font-family:Arial,Helvetica,sans-serif;font-size:30px;font-color:#fff;text-align:center;padding:20px; margin:0px;"><a href=""></a></p> |
- | swing: function (x, t, b, c, d) {
| + | </div> |
- | //alert(jQuery.easing.default);
| + | <div id="sidebar4"> |
- | return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
| + | <p style="font-family:Arial,Helvetica,sans-serif;font-size:17px;font-color:#000;text-align:justify;padding:10px; margin:0px;"> </p> |
- | },
| + | </div> |
- | easeInQuad: function (x, t, b, c, d) {
| + | </div> |
- | return c*(t/=d)*t + b;
| + | |
- | },
| + | <div id="sidebar"> |
- | easeOutQuad: function (x, t, b, c, d) {
| + | <div id="sidebar1"> |
- | return -c *(t/=d)*(t-2) + b;
| + | <p style="font-family:Arial,Helvetica,sans-serif;font-size:30px;font-color:#fff;text-align:center;padding:20px; margin:0px;"><a href=""></a></p> |
- | },
| + | </div> |
- | easeInOutQuad: function (x, t, b, c, d) {
| + | <div id="sidebar2"> |
- | if ((t/=d/2) < 1) return c/2*t*t + b;
| + | <p style="font-family:Arial,Helvetica,sans-serif;font-size:17px;font-color:#000;text-align:justify;padding:10px; margin:0px;"> </p> |
- | return -c/2 * ((--t)*(t-2) - 1) + b;
| + | </div> |
- | },
| + | </div> |
- | easeInCubic: function (x, t, b, c, d) {
| + | |
- | return c*(t/=d)*t*t + b;
| + | <div id="sidebar"> |
- | },
| + | <div id="sidebar3"> |
- | easeOutCubic: function (x, t, b, c, d) {
| + | <p style="font-family:Arial,Helvetica,sans-serif;font-size:30px;font-color:#fff;text-align:center;padding:20px; margin:0px;"><a href=""></a></p> |
- | return c*((t=t/d-1)*t*t + 1) + b;
| + | </div> |
- | },
| + | <div id="sidebar4"> |
- | easeInOutCubic: function (x, t, b, c, d) {
| + | <p style="font-family:Arial,Helvetica,sans-serif;font-size:17px;font-color:#000;text-align:justify;padding:10px; margin:0px;"> </p> |
- | if ((t/=d/2) < 1) return c/2*t*t*t + b;
| + | </div> |
- | return c/2*((t-=2)*t*t + 2) + b;
| + | </div> |
- | },
| + | </div> |
- | easeInQuart: function (x, t, b, c, d) {
| + | |
- | return c*(t/=d)*t*t*t + b;
| + | |
- | },
| + | </body> |
- | easeOutQuart: function (x, t, b, c, d) {
| + | |
- | return -c * ((t=t/d-1)*t*t*t - 1) + b;
| + | |
- | },
| + | |
- | easeInOutQuart: function (x, t, b, c, d) {
| + | |
- | if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
| + | |
- | return -c/2 * ((t-=2)*t*t*t - 2) + b;
| + | |
- | },
| + | |
- | easeInQuint: function (x, t, b, c, d) {
| + | |
- | return c*(t/=d)*t*t*t*t + b;
| + | |
- | },
| + | |
- | easeOutQuint: function (x, t, b, c, d) {
| + | |
- | return c*((t=t/d-1)*t*t*t*t + 1) + b;
| + | |
- | },
| + | |
- | easeInOutQuint: function (x, t, b, c, d) {
| + | |
- | if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
| + | |
- | return c/2*((t-=2)*t*t*t*t + 2) + b;
| + | |
- | },
| + | |
- | easeInSine: function (x, t, b, c, d) {
| + | |
- | return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
| + | |
- | },
| + | |
- | easeOutSine: function (x, t, b, c, d) {
| + | |
- | return c * Math.sin(t/d * (Math.PI/2)) + b;
| + | |
- | },
| + | |
- | easeInOutSine: function (x, t, b, c, d) {
| + | |
- | return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
| + | |
- | },
| + | |
- | easeInExpo: function (x, t, b, c, d) {
| + | |
- | return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
| + | |
- | },
| + | |
- | easeOutExpo: function (x, t, b, c, d) {
| + | |
- | return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
| + | |
- | },
| + | |
- | easeInOutExpo: function (x, t, b, c, d) {
| + | |
- | if (t==0) return b;
| + | |
- | if (t==d) return b+c;
| + | |
- | if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
| + | |
- | return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
| + | |
- | },
| + | |
- | easeInCirc: function (x, t, b, c, d) {
| + | |
- | return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
| + | |
- | },
| + | |
- | easeOutCirc: function (x, t, b, c, d) {
| + | |
- | return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
| + | |
- | },
| + | |
- | easeInOutCirc: function (x, t, b, c, d) {
| + | |
- | if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
| + | |
- | return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
| + | |
- | },
| + | |
- | easeInElastic: function (x, t, b, c, d) {
| + | |
- | var s=1.70158;var p=0;var a=c;
| + | |
- | if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
| + | |
- | if (a < Math.abs(c)) { a=c; var s=p/4; }
| + | |
- | else var s = p/(2*Math.PI) * Math.asin (c/a);
| + | |
- | return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
| + | |
- | },
| + | |
- | easeOutElastic: function (x, t, b, c, d) {
| + | |
- | var s=1.70158;var p=0;var a=c;
| + | |
- | if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
| + | |
- | if (a < Math.abs(c)) { a=c; var s=p/4; }
| + | |
- | else var s = p/(2*Math.PI) * Math.asin (c/a);
| + | |
- | return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
| + | |
- | },
| + | |
- | easeInOutElastic: function (x, t, b, c, d) {
| + | |
- | var s=1.70158;var p=0;var a=c;
| + | |
- | if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5);
| + | |
- | if (a < Math.abs(c)) { a=c; var s=p/4; }
| + | |
- | else var s = p/(2*Math.PI) * Math.asin (c/a);
| + | |
- | if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
| + | |
- | return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
| + | |
- | },
| + | |
- | easeInBack: function (x, t, b, c, d, s) {
| + | |
- | if (s == undefined) s = 1.70158;
| + | |
- | return c*(t/=d)*t*((s+1)*t - s) + b;
| + | |
- | },
| + | |
- | easeOutBack: function (x, t, b, c, d, s) {
| + | |
- | if (s == undefined) s = 1.70158;
| + | |
- | return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
| + | |
- | },
| + | |
- | easeInOutBack: function (x, t, b, c, d, s) {
| + | |
- | if (s == undefined) s = 1.70158;
| + | |
- | if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
| + | |
- | return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
| + | |
- | },
| + | |
- | easeInBounce: function (x, t, b, c, d) {
| + | |
- | return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
| + | |
- | },
| + | |
- | easeOutBounce: function (x, t, b, c, d) {
| + | |
- | if ((t/=d) < (1/2.75)) {
| + | |
- | return c*(7.5625*t*t) + b;
| + | |
- | } else if (t < (2/2.75)) {
| + | |
- | return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
| + | |
- | } else if (t < (2.5/2.75)) {
| + | |
- | return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
| + | |
- | } else {
| + | |
- | return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
| + | |
- | }
| + | |
- | },
| + | |
- | easeInOutBounce: function (x, t, b, c, d) {
| + | |
- | if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
| + | |
- | return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
| + | |
- | }
| + | |
- | });
| + | |
| | | |
- | /*
| |
- | *
| |
- | * TERMS OF USE - EASING EQUATIONS
| |
- | *
| |
- | * Open source under the BSD License.
| |
- | *
| |
- | * Copyright 漏 2001 Robert Penner
| |
- | * All rights reserved.
| |
- | *
| |
- | * Redistribution and use in source and binary forms, with or without modification,
| |
- | * are permitted provided that the following conditions are met:
| |
- | *
| |
- | * Redistributions of source code must retain the above copyright notice, this list of
| |
- | * conditions and the following disclaimer.
| |
- | * Redistributions in binary form must reproduce the above copyright notice, this list
| |
- | * of conditions and the following disclaimer in the documentation and/or other materials
| |
- | * provided with the distribution.
| |
- | *
| |
- | * Neither the name of the author nor the names of contributors may be used to endorse
| |
- | * or promote products derived from this software without specific prior written permission.
| |
- | *
| |
- | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
| |
- | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
| |
- | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
| |
- | * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
| |
- | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
| |
- | * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
| |
- | * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
| |
- | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
| |
- | * OF THE POSSIBILITY OF SUCH DAMAGE.
| |
- | *
| |
- | */
| |
- | </script>
| |
- | </body>
| |
| </html> | | </html> |
| + | {{:Team:HZAU-China/background-footer}} |
| + | <br/> |