уауц54нц Фуауц54нцуауц54нцуауц54нцуауц54нц
уауц54нц уауц54нц
Страница: 1
Сообщений 1 страница 5 из 5
Поделиться22018-07-01 15:19:48
Код:
<!--HTML--> <style> @import "compass/css3"; .row { float: left; width: 100%; } .row .block { float: left; width: 25%; height: 150px; } .hovicon { display: inline-block; font-size: 45px; line-height: 90px; cursor: pointer; margin: 20px; width: 90px; height: 90px; border-radius: 50%; text-align: center; position: relative; text-decoration: none; z-index: 1; color: #fff; } .hovicon.small { font-size: 20px; line-height:45px; width:45px; height:45px; margin:7px; } .hovicon.mini { font-size: 15px; line-height:32px; width:30px; height:30px; margin:7px; } .hovicon.auto-width { width: auto; height: auto; padding: 15px; } .hovicon:after { pointer-events: none; position: absolute; width: 100%; height: 100%; border-radius: 50%; content:''; -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box; } .hovicon:before { speak: none; font-size: 48px; line-height: 90px; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; display: block; -webkit-font-smoothing: antialiased; } /* Effect 1 */ .hovicon.effect-1 { background: rgba(255, 255, 255, 0.1); -webkit-transition: background 0.2s, color 0.2s; -moz-transition: background 0.2s, color 0.2s; transition: background 0.2s, color 0.2s; } .hovicon.effect-1:after { top: -7px; left: -7px; padding: 7px; box-shadow: 0 0 0 4px #fff; -webkit-transition: -webkit-transform 0.2s, opacity 0.2s; -webkit-transform: scale(.8); -moz-transition: -moz-transform 0.2s, opacity 0.2s; -moz-transform: scale(.8); -ms-transform: scale(.8); transition: transform 0.2s, opacity 0.2s; transform: scale(.8); opacity: 0; } /* Effect 1a */ .hovicon.effect-1.sub-a:hover { background: rgba(255, 255, 255, 1); color: #41ab6b; } .hovicon.effect-1.sub-a:hover i { color: #41ab6b; } .hovicon.effect-1.sub-a:hover:after { -webkit-transform: scale(1); -moz-transform: scale(1); -ms-transform: scale(1); transform: scale(1); opacity: 1; } /* Effect 1b */ .hovicon.effect-1.sub-b:hover { background: rgba(255, 255, 255, 1); color: #41ab6b; } .hovicon.effect-1.sub-b:hover i { color: #41ab6b; } .hovicon.effect-1.sub-b:after { -webkit-transform: scale(1.2); -moz-transform: scale(1.2); -ms-transform: scale(1.2); transform: scale(1.2); } .hovicon.effect-1.sub-b:hover:after { -webkit-transform: scale(1); -moz-transform: scale(1); -ms-transform: scale(1); transform: scale(1); opacity: 1; } /* Effect 2 */ .hovicon.effect-2 { color: #eea303; box-shadow: 0 0 0 3px #fff; -webkit-transition: color 0.3s; -moz-transition: color 0.3s; transition: color 0.3s; } .hovicon.effect-2:after { top: -2px; left: -2px; padding: 2px; z-index: -1; background: #fff; -webkit-transition: -webkit-transform 0.2s, opacity 0.2s; -moz-transition: -moz-transform 0.2s, opacity 0.2s; transition: transform 0.2s, opacity 0.2s; } /* Effect 2a */ .hovicon.effect-2.sub-a:hover, .hovicon.effect-2.sub-a:hover i { color: #eea303; } .hovicon.effect-2.sub-a:hover:after { -webkit-transform: scale(0.85); -moz-transform: scale(0.85); -ms-transform: scale(0.85); transform: scale(0.85); } /* Effect 2b */ .hovicon.effect-2.sub-b:hover:after { -webkit-transform: scale(0); -moz-transform: scale(0); -ms-transform: scale(0); transform: scale(0); opacity: 0; -webkit-transition: -webkit-transform 0.4s, opacity 0.2s; -moz-transition: -moz-transform 0.4s, opacity 0.2s; transition: transform 0.4s, opacity 0.2s; } .hovicon.effect-2.sub-b:hover, .hovicon.effect-2.sub-b:hover i { color: #fff; } /* Effect 3 */ .hovicon.effect-3 { box-shadow: 0 0 0 4px #fff; -webkit-transition: color 0.3s; -moz-transition: color 0.3s; transition: color 0.3s; } .hovicon.effect-3:after { top: -2px; left: -2px; padding: 2px; z-index: -1; background: #fff; -webkit-transition: -webkit-transform 0.2s, opacity 0.3s; -moz-transition: -moz-transform 0.2s, opacity 0.3s; transition: transform 0.2s, opacity 0.3s; } /* Effect 3a */ .hovicon.effect-3.sub-a, .hovicon.effect-3.sub-a i { color: #f06060; } .hovicon.effect-3.sub-a:hover, .hovicon.effect-3.sub-a:hover i { color: #fff; } .hovicon.effect-3.sub-a:hover:after { -webkit-transform: scale(1.3); -moz-transform: scale(1.3); -ms-transform: scale(1.3); transform: scale(1.3); opacity: 0; } /* Effect 3b */ .hovicon.effect-3.sub-b, .hovicon.effect-3.sub-b i { color: #fff; } .hovicon.effect-3.sub-b:hover, .hovicon.effect-3.sub-b:hover i { color: #f06060; } .hovicon.effect-3.sub-b:after { -webkit-transform: scale(1.3); -moz-transform: scale(1.3); -ms-transform: scale(1.3); transform: scale(1.3); opacity: 0; } .hovicon.effect-3.sub-b:hover:after { -webkit-transform: scale(1); -moz-transform: scale(1); -ms-transform: scale(1); transform: scale(1); opacity: 1; } /* Effect 4 */ .hovicon.effect-4 { width: 92px; height: 92px; box-shadow: 0 0 0 4px rgba(255, 255, 255, 1); } .hovicon.effect-4.small { width:45px; height:45px; } .hovicon.effect-4.mini { width:30px; height:30px; } .hovicon.effect-4.sub-a { -webkit-transition: box-shadow 0.2s; -moz-transition: box-shadow 0.2s; transition: box-shadow 0.2s; } .hovicon.effect-4:before { line-height: 92px; } .hovicon.effect-4:after { top: -4px; left: -4px; padding: 0; z-index: 10; border: 4px dashed #fff; } .hovicon.effect-4:hover { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); color: #fff; } .hovicon.effect-4:hover i { color: #fff; } /* Effect 4b */ .hovicon.effect-4.sub-b:hover { -webkit-transition: box-shadow 0.2s; -moz-transition: box-shadow 0.2s; transition: box-shadow 0.2s; } .hovicon.effect-4.sub-b:hover:after { -webkit-animation: spinAround 9s linear infinite; -moz-animation: spinAround 9s linear infinite; animation: spinAround 9s linear infinite; } @-webkit-keyframes spinAround { from { -webkit-transform: rotate(0deg) } to { -webkit-transform: rotate(360deg); } } @-moz-keyframes spinAround { from { -moz-transform: rotate(0deg) } to { -moz-transform: rotate(360deg); } } @keyframes spinAround { from { transform: rotate(0deg) } to { transform: rotate(360deg); } } /* Effect 5 */ .hovicon.effect-5 { box-shadow: 0 0 0 4px rgba(255, 255, 255, 1); overflow: hidden; -webkit-transition: background 0.3s, color 0.3s, box-shadow 0.3s; -moz-transition: background 0.3s, color 0.3s, box-shadow 0.3s; transition: background 0.3s, color 0.3s, box-shadow 0.3s; } .hovicon.effect-5:after { display: none; } .hovicon.effect-5:hover { background: rgba(255, 255, 255, 1); color: #702fa8; box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.3); } .hovicon.effect-5:hover i { color: #702fa8; } .hovicon.effect-5.sub-a:hover:before { -webkit-animation: toRightFromLeft 0.3s forwards; -moz-animation: toRightFromLeft 0.3s forwards; animation: toRightFromLeft 0.3s forwards; } @-webkit-keyframes toRightFromLeft { 49% { -webkit-transform: translate(100%); } 50% { opacity: 0; -webkit-transform: translate(-100%); } 51% { opacity: 1; } } @-moz-keyframes toRightFromLeft { 49% { -moz-transform: translate(100%); } 50% { opacity: 0; -moz-transform: translate(-100%); } 51% { opacity: 1; } } @keyframes toRightFromLeft { 49% { transform: translate(100%); } 50% { opacity: 0; transform: translate(-100%); } 51% { opacity: 1; } } .hovicon.effect-5.sub-b:hover:before { -webkit-animation: toLeftFromRight 0.3s forwards; -moz-animation: toLeftFromRight 0.3s forwards; animation: toLeftFromRight 0.3s forwards; } @-webkit-keyframes toLeftFromRight { 49% { -webkit-transform: translate(-100%); } 50% { opacity: 0; -webkit-transform: translate(100%); } 51% { opacity: 1; } } @-moz-keyframes toLeftFromRight { 49% { -moz-transform: translate(-100%); } 50% { opacity: 0; -moz-transform: translate(100%); } 51% { opacity: 1; } } @keyframes toLeftFromRight { 49% { transform: translate(-100%); } 50% { opacity: 0; transform: translate(100%); } 51% { opacity: 1; } } .hovicon.effect-5.sub-c:hover:before { -webkit-animation: toTopFromBottom 0.3s forwards; -moz-animation: toTopFromBottom 0.3s forwards; animation: toTopFromBottom 0.3s forwards; } @-webkit-keyframes toTopFromBottom { 49% { -webkit-transform: translateY(-100%); } 50% { opacity: 0; -webkit-transform: translateY(100%); } 51% { opacity: 1; } } @-moz-keyframes toTopFromBottom { 49% { -moz-transform: translateY(-100%); } 50% { opacity: 0; -moz-transform: translateY(100%); } 51% { opacity: 1; } } @keyframes toTopFromBottom { 49% { transform: translateY(-100%); } 50% { opacity: 0; transform: translateY(100%); } 51% { opacity: 1; } } .hovicon.effect-5.sub-d:hover:before { -webkit-animation: toBottomFromTop 0.3s forwards; -moz-animation: toBottomFromTop 0.3s forwards; animation: toBottomFromTop 0.3s forwards; } @-webkit-keyframes toBottomFromTop { 49% { -webkit-transform: translateY(100%); } 50% { opacity: 0; -webkit-transform: translateY(-100%); } 51% { opacity: 1; } } @-moz-keyframes toBottomFromTop { 49% { -moz-transform: translateY(100%); } 50% { opacity: 0; -moz-transform: translateY(-100%); } 51% { opacity: 1; } } @keyframes toBottomFromTop { 49% { transform: translateY(100%); } 50% { opacity: 0; transform: translateY(-100%); } 51% { opacity: 1; } } /* Effect 6 */ .hovicon.effect-6 { box-shadow: 0 0 0 4px rgba(255, 255, 255, 1); -webkit-transition: background 0.2s, color 0.2s; -moz-transition: background 0.2s, color 0.2s; transition: background 0.2s, color 0.2s; } .hovicon.effect-6:hover { background: rgba(255, 255, 255, 1); color: #64bb5d; } .hovicon.effect-6:hover i { color: #64bb5d; } .hovicon.effect-6:hover:before { -webkit-animation: spinAround 2s linear infinite; -moz-animation: spinAround 2s linear infinite; animation: spinAround 2s linear infinite; } /* Effect 7 */ .hovicon.effect-7 { box-shadow: 0 0 0 4px rgba(255, 255, 255, 1); -webkit-transition: background 0.2s, color 0.2s; -moz-transition: background 0.2s, color 0.2s; transition: background 0.2s, color 0.2s; } .hovicon.effect-7:hover, .hovicon.effect-7:hover i { color: #fff; } .hovicon.effect-7:after { top: -8px; left: -8px; padding: 8px; z-index: -1; opacity: 0; } /* Effect 7a */ .hovicon.effect-7.sub-a:after { box-shadow: 0 0 0 rgba(255, 255, 255, 1); -webkit-transition: opacity 0.2s, box-shadow 0.2s; -moz-transition: opacity 0.2s, box-shadow 0.2s; transition: opacity 0.2s, box-shadow 0.2s; } .hovicon.effect-7.sub-a:hover:after { opacity: 1; box-shadow: 3px 3px 0 rgba(255, 255, 255, 1); } .hovicon.effect-7.sub-a:before { -webkit-transform: scale(0.8); -moz-transform: scale(0.8); -ms-transform: scale(0.8); transform: scale(0.8); opacity: 0.7; -webkit-transition: -webkit-transform 0.2s, opacity 0.2s; -moz-transition: -moz-transform 0.2s, opacity 0.2s; transition: transform 0.2s, opacity 0.2s; } .hovicon.effect-7.sub-a:hover:before { -webkit-transform: scale(1); -moz-transform: scale(1); -ms-transform: scale(1); transform: scale(1); opacity: 1; } /* Effect 7b */ .hovicon.effect-7.sub-b:after { box-shadow: 3px 3px rgba(255, 255, 255, 1); -webkit-transform: rotate(-90deg); -moz-transform: rotate(-90deg); -ms-transform: rotate(-90deg); transform: rotate(-90deg); -webkit-transition: opacity 0.2s, -webkit-transform 0.2s; -moz-transition: opacity 0.2s, -moz-transform 0.2s; transition: opacity 0.2s, transform 0.2s; } .hovicon.effect-7.sub-b:hover:after { opacity: 1; -webkit-transform: rotate(0deg); -moz-transform: rotate(0deg); -ms-transform: rotate(0deg); transform: rotate(0deg); } .hovicon.effect-7.sub-b:before { -webkit-transform: scale(0.8); -moz-transform: scale(0.8); -ms-transform: scale(0.8); transform: scale(0.8); opacity: 0.7; -webkit-transition: -webkit-transform 0.2s, opacity 0.2s; -moz-transition: -moz-transform 0.2s, opacity 0.2s; transition: transform 0.2s, opacity 0.2s; } .hovicon.effect-7.sub-b:hover:before { -webkit-transform: scale(1); -moz-transform: scale(1); -ms-transform: scale(1); transform: scale(1); opacity: 1; } /* Effect 8 */ .hovicon.effect-8 { background: rgba(255, 255, 255, 0.1); -webkit-transition: -webkit-transform ease-out 0.1s, background 0.2s; -moz-transition: -moz-transform ease-out 0.1s, background 0.2s; transition: transform ease-out 0.1s, background 0.2s; } .hovicon.effect-8:after { top: 0; left: 0; padding: 0; z-index: -1; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1); opacity: 0; -webkit-transform: scale(0.9); -moz-transform: scale(0.9); -ms-transform: scale(0.9); transform: scale(0.9); } .hovicon.effect-8:hover { background: rgba(255, 255, 255, 0.05); -webkit-transform: scale(0.93); -moz-transform: scale(0.93); -ms-transform: scale(0.93); transform: scale(0.93); color: #fff; } .hovicon.effect-8:hover i { color: #fff; } .hovicon.effect-8:hover:after { -webkit-animation: sonarEffect 1.3s ease-out 75ms; -moz-animation: sonarEffect 1.3s ease-out 75ms; animation: sonarEffect 1.3s ease-out 75ms; } @-webkit-keyframes sonarEffect { 0% { opacity: 0.3; } 40% { opacity: 0.5; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1), 0 0 10px 10px #3851bc, 0 0 0 10px rgba(255, 255, 255, 0.5); } 100% { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1), 0 0 10px 10px #3851bc, 0 0 0 10px rgba(255, 255, 255, 0.5); -webkit-transform: scale(1.5); opacity: 0; } } @-moz-keyframes sonarEffect { 0% { opacity: 0.3; } 40% { opacity: 0.5; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1), 0 0 10px 10px #3851bc, 0 0 0 10px rgba(255, 255, 255, 0.5); } 100% { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1), 0 0 10px 10px #3851bc, 0 0 0 10px rgba(255, 255, 255, 0.5); -moz-transform: scale(1.5); opacity: 0; } } @keyframes sonarEffect { 0% { opacity: 0.3; } 40% { opacity: 0.5; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1), 0 0 10px 10px #3851bc, 0 0 0 10px rgba(255, 255, 255, 0.5); } 100% { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1), 0 0 10px 10px #3851bc, 0 0 0 10px rgba(255, 255, 255, 0.5); transform: scale(1.5); opacity: 0; } } /* Effect 9 */ .hovicon.effect-9 { -webkit-transition: box-shadow 0.2s; -moz-transition: box-shadow 0.2s; transition: box-shadow 0.2s; } .hovicon.effect-9:after { top: 0; left: 0; padding: 0; box-shadow: 0 0 0 3px #fff; -webkit-transition: -webkit-transform 0.2s, opacity 0.2s; -moz-transition: -moz-transform 0.2s, opacity 0.2s; transition: transform 0.2s, opacity 0.2s; } /* Effect 9a */ .hovicon.effect-9.sub-a:hover:after { -webkit-transform: scale(0.85); -moz-transform: scale(0.85); -ms-transform: scale(0.85); transform: scale(0.85); opacity: 0.5; } .hovicon.effect-9.sub-a:hover { box-shadow: 0 0 0 10px rgba(255, 255, 255, 1); color: #fff; } .hovicon.effect-9.sub-a:hover i { color: #fff; } /* Effect 9b */ .hovicon.effect-9.sub-b:hover:after { -webkit-transform: scale(0.85); -moz-transform: scale(0.85); -ms-transform: scale(0.85); transform: scale(0.85); } .hovicon.effect-9.sub-b:hover { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.4); color: #fff; } .hovicon.effect-9.sub-b:hover i { color: #fff; }</style> <div class="row"> <div class="block"> <i class="hovicon effect-1 sub-a">IO</i> </div> <div class="block"> <i class="hovicon effect-1 sub-b">IO</i> </div> <div class="block"> <i class="hovicon effect-2 sub-a">IO</i> </div> <div class="block"> <i class="hovicon effect-2 sub-b">IO</i> </div> </div> <div class="row"> <div class="block"> <i class="hovicon effect-3 sub-a">IO</i> </div> <div class="block"> <i class="hovicon effect-3 sub-b">IO</i> </div> <div class="block"> <i class="hovicon effect-4 sub-a">IO</i> </div> <div class="block"> <i class="hovicon effect-4 sub-b">IO</i> </div> </div> <div class="row"> <div class="block"> <i class="hovicon effect-5 sub-a">IO</i> </div> <div class="block"> <i class="hovicon effect-6">IO</i> </div> <div class="block"> <i class="hovicon effect-7 sub-a">IO</i> </div> <div class="block"> <i class="hovicon effect-7 sub-b">IO</i> </div> </div> <div class="row"> <div class="block"> <i class="hovicon effect-8">IO</i> </div> <div class="block"> <i class="hovicon effect-9 sub-a">IO</i> </div> <div class="block"> <i class="hovicon effect-9 sub-b">IO</i> </div> <div class="block"> <i class="hovicon effect-1 sub-a"><b class="icon-camera-retro"></b> </i> </div> </div> <link rel="stylesheet" type="text/css" href="https://netdna.bootstrapcdn.com/font-awesome/3.0.2/css/font-awesome.css" />
Поделиться32018-07-01 15:45:39
Код:
<!--HTML--> <style> h1 { color: white; padding-left: 10px; } #hover { color: rgba(188, 175, 204, 0.9); } h2#testimonials { color: #fffae3; } div#all { width: 100%; height: 100%; } /* generic css */ .view { margin: 10px; float: left; border: 10px solid #fff; overflow: hidden; position: relative; text-align: center; box-shadow: 1px 1px 2px #e6e6e6; cursor: default; background: #fff url(../images/bgimg.jpg) no-repeat center center } .view .mask, .view .content { width: 300px; height: 200px; position: absolute; overflow: hidden; top: 0; left: 0 } .view img { display: block; position: relative } .view h2 { text-transform: uppercase; color: #fff; text-align: center; position: relative; font-size: 17px; font-family: Raleway, serif; padding: 10px; /*background: rgba(0, 0, 0, 0.8);*/ margin: 20px 0 0 0 } .view p { font-family: Merriweather, serif; font-style: italic; font-size: 14px; position: relative; color: #fff; padding: 0px 20px 0px; text-align: center } .view a.info { display: inline-block; text-decoration: none; padding: 7px 14px; background: #000; color: #fff; font-family: Raleway, serif; text-transform: uppercase; box-shadow: 0 0 1px #000 } .view a.info:hover { box-shadow: 0 0 5px #000 } /*1*/ .view-first img { /*1*/ transition: all 0.2s linear; width: 300px; height: 200px; } .view-first .mask { opacity: 0; background-color: rgba(58, 1, 132, 0.44); transition: all 0.4s ease-in-out; } .view-first h2 { transform: translateY(-100px); opacity: 0; font-family: Raleway, serif; transition: all 0.2s ease-in-out; } .view-first p { transform: translateY(100px); opacity: 0; transition: all 0.2s linear; } .view-first a.info { opacity: 0; transition: all 0.2s ease-in-out; } /* */ .view-first:hover img { transform: scale(1.1); } .view-first:hover .mask { opacity: 1; } .view-first:hover h2, .view-first:hover p, .view-first:hover a.info { opacity: 1; transform: translateY(0px); } .view-first:hover p { transition-delay: 0.1s; } .view-first:hover a.info { transition-delay: 0.2s; } /*2*/ .view-second img { transition: all 0.2s ease-in; -webkit-transition: all 0.2s ease-in; } .view-second .mask { background-color: rgba(12, 19, 27, 0.6); width: 300px; padding: 105px; height: 200px; opacity: 0; transform: translate(265px, 145px) rotate(45deg); -webkit-transform: translate(265px, 145px) rotate(45deg); transition: all 0.2s ease-in-out; -webkit-transition: all 0.2s ease-in-out; } .view-second h2 { border-bottom: 1px solid rgba(0, 0, 0, 0.3); font-family: Raleway, serif; background: transparent; margin: 20px 40px 0px 40px; -webkit-transform: translate(200px, -200px); transform: translate(200px, -200px); -webkit-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; } .view-second p { transform: translate(-200px, 200px); -webkit-transform: translate(200px, -200px); transition: all 0.2s ease-in-out; -webkit-transition: all 0.2s ease-in-out; } .view-second a.info { transform: translate(0px, 100px); -webkit-transform: translate(0px, 100px); transition: all 0.2s 0.1s ease-in-out; -webkit-transition: all 0.2s 0.1s ease-in-out; } /* */ .view-second:hover .mask { opacity: 1; transform: translate(-80px, -125px) rotate(45deg); -webkit-transform: translate(-80px, -125px) rotate(45deg); } .view-second:hover h2 { transform: translate(0px, 0px); -webkit-transform: translate(0px, 0px); transition-delay: 0.3s; -webkit-transition-delay: 0.3s; } .view-second:hover p { transform: translate(0px, 0px); -webkit-transform: translate(0px, 0px); transition-delay: 0.4s; -webkit-transition-delay: 0.4s; } .view-second:hover a.info { transform: translate(0px, 0px); -webkit-transform: translate(0px, 0px); transition-delay: 0.5s; -webkit-transition-delay: 0.5s; } /*3*/ .view-tenth img { transform: scaleY(1); transition: all .7s ease-in-out; } .view-tenth .mask { background-color: rgba(255, 231, 179, 0.3); transition: all 0.5s linear; opacity: 0; } .view-tenth h2 { border-bottom: 1px solid rgba(0, 0, 0, 0.3); background: transparent; margin: 20px 40px 0px 40px; transform: scale(0); color: #333; transition: all 0.5s linear; opacity: 0; } .view-tenth p { color: #333; opacity: 0; transform: scale(0); transition: all 0.5s linear; padding- } .view-tenth a.info { opacity: 0; transform: scale(0); transition: all 0.5s linear; } .view-tenth:hover img { -webkit-transform: scale(10); transform: scale(10); opacity: 0; } .view-tenth:hover .mask { opacity: 1; } .view-tenth:hover h2, .view-tenth:hover p, .view-tenth:hover a.info { transform: scale(1); opacity: 1; }</style> <link href='https://fonts.googleapis.com/css?family=Raleway:400,700|Merriweather' rel='stylesheet' type='text/css'> <h1 style="font-family: 'Raleway', sans-serif;"> CSS3 hover<span id="hover"> effects/</span></h1> <p style="font-family: sans-serif; color: #fff; padding-left: 10px;">An implementation of Alessio Atzeni's CSS3 effects. Please give credit to <a href="www.jacobstone.co.uk" style="color:#efefef; text-decoration: none;">www.jacobstone.co.uk</a> if you use my photography.</p> <div id="all"> <div class="view view-first"> <img src="http://static1.squarespace.com/static/55ac6d80e4b0a964784b2f80/t/5703e9208259b507928ad72a/1459874081584/xzKx01n.png" /> <div class="mask"> <h2>Empire State</h2> <p>A cool description of some sort between these tags. I am so cool and awesomely awesome.</p> <a href="#" class="info">Read More</a> </div> </div> <div class="view view-second"> <img src="http://static1.squarespace.com/static/55ac6d80e4b0a964784b2f80/t/5703eaab37013bdcee28c077/1459874476977/gw9SfTu.png" /> <div class="mask"></div> <div class="content"> <h2>Midtown</h2> <p>A description of some sort between these tags. I am so cool and awesomely awesome.</p> <a href="#" class="info">Read More</a> </div> </div> <div class="view view-tenth"> <img src="http://static1.squarespace.com/static/55ac6d80e4b0a964784b2f80/t/5703eb0cb09f95f41391ea85/1459874573710/j07SfQZ.png" /> <div class="mask"> <h2>The Only Living Boy in New York</h2> <p>Words and such, a whole lot more of muh flippin' words.</p> <a href="#" class="info">Read More</a> </div> </div> <div class="view view-second"> <img src="http://static1.squarespace.com/static/55ac6d80e4b0a964784b2f80/t/5703eb2e746fb98cc2510ebd/1459874606989/PsZyN43.png" /> <div class="mask"></div> <div class="content"> <h2 id="testimonials">Upper East Side</h2> <p>“A description of some sort between these tags. I am so cool ye and awesomely awesome. He was cool.”</p> <a href="#" class="info">Read More</a> </div> </div> </div>
Поделиться42018-07-01 15:59:34
Код:
<!--HTML--> <style> svg{font-weight:bold;max-width:900px;height: 130px;} </style> <svg viewbox="0 0 100 20"> <defs> <linearGradient id="gradient" x1="0" x2="0" y1="0" y2="1"> <stop offset="5%" stop-color="#326384"/> <stop offset="95%" stop-color="#123752"/> </linearGradient> <pattern id="wave" x="0" y="0" width="120" height="20" patternUnits="userSpaceOnUse"> <path id="wavePath" d="M-40 9 Q-30 7 -20 9 T0 9 T20 9 T40 9 T60 9 T80 9 T100 9 T120 9 V20 H-40z" mask="url(#mask)" fill="url(#gradient)"> <animateTransform attributeName="transform" begin="0s" dur="1.5s" type="translate" from="0,0" to="40,0" repeatCount="indefinite" /> </path> </pattern> </defs> <text text-anchor="middle" x="50" y="15" font-size="17" fill="url(#wave)" fill-opacity="0.6">LOADING</text> <text text-anchor="middle" x="50" y="15" font-size="17" fill="url(#gradient)" fill-opacity="0.1">LOADING</text> </svg>
Поделиться52018-07-01 16:07:02
Код:
<!--HTML--> <style> svg{ position absolute top 50% margin-top -60px left 50% height: 130px; margin-left -225px} </style> <link href='https://fonts.googleapis.com/css?family=Cabin+Condensed:700' rel='stylesheet' type='text/css'> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="750px" height="240px" xml:space="preserve"> <defs> <pattern id="water" width=".25" height="1.1" patternContentUnits="objectBoundingBox"> <path fill="#000" d="M0.25,1H0c0,0,0-0.659,0-0.916c0.083-0.303,0.158,0.334,0.25,0C0.25,0.327,0.25,1,0.25,1z"/> </pattern> <text id="text" transform="translate(2,116)" font-family="'Cabin Condensed'" font-size="161.047">QUANTUM</text> <mask id="text-mask"> <use x="0" y="0" xlink:href="#text" opacity="1" fill="#ffffff"/> </mask> <g id="eff"> <use x="0" y="0" xlink:href="#text" fill="#a2a3a5"/> <rect class="water-fill" mask="url(#text-mask)" fill="url(#water)" x="-300" y="50" width="1200" height="120" opacity="0.3"> <animate attributeType="xml" attributeName="x" from="-300" to="0" repeatCount="indefinite" dur="2s"/> </rect> <rect class="water-fill" mask="url(#text-mask)" fill="url(#water)" y="45" width="1600" height="120" opacity="0.3"> <animate attributeType="xml" attributeName="x" from="-400" to="0" repeatCount="indefinite" dur="3s"/> </rect> <rect class="water-fill" mask="url(#text-mask)" fill="url(#water)" y="55" width="800" height="120" opacity="0.3"> <animate attributeType="xml" attributeName="x" from="-200" to="0" repeatCount="indefinite" dur="1.4s"/> </rect> <rect class="water-fill" mask="url(#text-mask)" fill="url(#water)" y="55" width="2000" height="120" opacity="0.3"> <animate attributeType="xml" attributeName="x" from="-500" to="0" repeatCount="indefinite" dur="2.8s"/> </rect> </g> </defs> <use xlink:href="#eff" opacity="0.9" style="mix-blend-mode:color-burn"/> </svg>
Страница: 1