Pokazywanie postów oznaczonych etykietą animacja. Pokaż wszystkie posty
Pokazywanie postów oznaczonych etykietą animacja. Pokaż wszystkie posty

Automatyczna zmiana koloru tła strony internetowej.

Źródło: http://cssdeck.com/labs/immanvel

HTML

<div class="color-background"> <div class="color-me"> <p> Play with colors </p> By Imman Vel </div> </div>

CSS

/*---------------------------------- * * Animation Background color * * Date: 22/12/2013 * Author: Imman vel * Fb User Name: Imman00vel * licence: Free * * Compatible Browsers: IE9+, Firefox 5+, Safari 5+, Opera 12+, Chrome *----------------------------------*/ .color-background { position: absolute; top: 0; left: 0; margin: 0 auto; padding: 0; height: 100%; width: 100%; animation: colorBackground 20s infinite; /* Chrome, Firefox 16+, IE 10+, Opera 12.10+ */ -webkit-animation: colorBackground 20s infinite; /* Chrome, Safari 5+ */ -moz-animation: colorBackground 20s infinite; /* Firefox 5-15 */ -o-animation: colorBackground 20s infinite; /* Opera 12.00 */ } @keyframes colorBackground { 0% { background-color: #fbcf61; color: #fbcf61; } 20% { background-color: #6bd57e; color: #6bd57e; } 40% { background-color: #ff6f6f; color: #ff6f6f; } 60% { background-color: #57cff4; color: #57cff4; } 80% { background-color: #0ed4c8; color: #0ed4c8; } 100% { background-color: #fbcf61; color: #fbcf61; } } @-webkit-keyframes colorBackground { 0% { background-color: #fbcf61; color: #fbcf61; } 20% { background-color: #6bd57e; color: #6bd57e; } 40% { background-color: #ff6f6f; color: #ff6f6f; } 60% { background-color: #57cff4; color: #57cff4; } 80% { background-color: #0ed4c8; color: #0ed4c8; } 100% { background-color: #fbcf61; color: #fbcf61; } } @-moz-keyframes colorBackground { 0% { background-color: #fbcf61; color: #fbcf61; } 20% { background-color: #6bd57e; color: #6bd57e; } 40% { background-color: #ff6f6f; color: #ff6f6f; } 60% { background-color: #57cff4; color: #57cff4; } 80% { background-color: #0ed4c8; color: #0ed4c8; } 100% { background-color: #fbcf61; color: #fbcf61; } } @-o-keyframes colorBackground { 0% { background-color: #fbcf61; color: #fbcf61; } 20% { background-color: #6bd57e; color: #6bd57e; } 40% { background-color: #ff6f6f; color: #ff6f6f; } 60% { background-color: #57cff4; color: #57cff4; } 80% { background-color: #0ed4c8; color: #0ed4c8; } 100% { background-color: #fbcf61; color: #fbcf61; } } .color-me { position: relative; top: 35%; background-color: #fff; padding: 20px; font-size: 50px; text-align: center; letter-spacing: 3px; } .color-background .color-me p { padding: 0; margin: 0 0 -15px 0; color: #777; letter-spacing: 5px; font-size: 20px; text-transform: uppercase; }

CSS: Płynna zmiana kolorów tła

Wyraziste podkreślenie przyciąga uwagę. Po najechaniu na napis, podkreślenie zamienia się w subtelną ramkę.

Taki delikatny efekt już w 6 linijkach HTML :)


Źródło: http://cssdeck.com/labs/svg-hover-effect

HTML

<div class="svg-wrapper"> <svg height="60" width="320" xmlns="http://www.w3.org/2000/svg"> <rect class="shape" height="60" width="320" /> <div class="text">ZACH SAUCIER</div> </svg> </div>

CSS

html, body { background: rgb(20,20,20); text-align: center; height: 100%; overflow: hidden; } .svg-wrapper { position: relative; top: 50%; transform: translateY(-50%); margin: 0 auto; width: 320px; } .shape { stroke-dasharray: 140 540; stroke-dashoffset: -474; stroke-width: 8px; fill: transparent; stroke: #19f6e8; border-bottom: 5px solid black; transition: stroke-width 1s, stroke-dashoffset 1s, stroke-dasharray 1s; } .text { font-family: 'Roboto Condensed'; font-size: 22px; line-height: 32px; letter-spacing: 8px; color: #fff; top: -48px; position: relative; } .svg-wrapper:hover .shape { stroke-width: 2px; stroke-dashoffset: 0; stroke-dasharray: 760; }

CSS: SVG Hover Effect

Myślę że każdy, kto choć czasem ogląda materiały związane z tworzeniem stron, miał okazję zobaczyć Lavalamp menu. Pierwsze menu wykonane w ten sposób napisano już parę lat temu, co tym przypadku jest czasem bardzo odległym. Dziś przedstawiam odświeżoną wersję Lavalamp menu.

Mamy do wyboru 3 efekty hoover - pływające podkreślenie, pływająca czerwona kulka, a w przypadku serca - no jak jest serce, musi być też strzała ;) Może troszkę tandetne, jednak dzięki temu widać, jaki potencjał twórczy kryje się w niepozornym menu- serca czy czerwoną kulkę możemy zastąpić... wszystkim.


Źródło: http://cssdeck.com/labs/wwahaw2y

HTML

<div class="ph-line-nav nav"> <a href="#">Home</a> <a href="#">About</a> <a href="#">Gallery</a> <a href="#">Contact</a> <div class="effect"></div> </div> <div class="ph-dot-nav nav"> <a href="#">Home</a> <a href="#">About</a> <a href="#">Gallery</a> <a href="#">Contact</a> <div class="effect"></div> </div> <div class="ph-heart-nav nav"> <a href="#">Home</a> <a href="#">About</a> <a href="#">Gallery</a> <a href="#">Contact</a> <div class="effect"></div> </div>

CSS

/* ---- reset ------*/ html, body, div, a { margin: 0; padding: 0; border: 0; font: inherit; font-size: 100%; vertical-align: baseline; } html { line-height: 1; } /* --- basic styles ----*/ body { font-family: "Unica One"; font-size: 1.5em; background: #f2f2f2; text-shadow: 0 1px 0 white; } /* --- for all three examples ----*/ .nav { text-align: center; overflow: hidden; margin: 2em auto; width: 480px; position: relative; } .nav a { display: block; position: relative; float: left; padding: 1em 0 2em; width: 25%; text-decoration: none; color: #393939; -webkit-transition: .7s; -moz-transition: .7s; -o-transition: .7s; -ms-transition: .7s; transition: .7s; } .nav a:hover { color: #c6342e; } .effect { position: absolute; left: -12.5%; -webkit-transition: 0.7s ease-in-out; -moz-transition: 0.7s ease-in-out; -o-transition: 0.7s ease-in-out; -ms-transition: 0.7s ease-in-out; transition: 0.7s ease-in-out; } .nav a:nth-child(1):hover ~ .effect { left: 12.5%; } .nav a:nth-child(2):hover ~ .effect { left: 37.5%; } .nav a:nth-child(3):hover ~ .effect { left: 62.5%; } .nav a:nth-child(4):hover ~ .effect { left: 87.5%; } /* ----- line example -----*/ .ph-line-nav .effect { width: 90px; height: 2px; bottom: 36px; background: #c6342e; box-shadow: 0 1px 0 white; margin-left:-45px; } /* ----- dot example -----*/ .ph-dot-nav:after { content: ""; display: block; position: absolute; width: 100%; height: 1px; background: #c6342e; bottom: 40px; } .ph-dot-nav a:after { content: ""; position: absolute; width: 4px; height: 4px; bottom: 38px; left: 50%; margin-left: -2px; background: #c6342e; border-radius: 100%; } .ph-dot-nav .effect { width: 10px; height: 10px; bottom: 36px; margin-left: -5px; background: #c6342e; border-radius: 100%; } /* ----- heart example -----*/ .ph-heart-nav .effect, .ph-heart-nav a:after, .ph-heart-nav a:before { background: url('http://pepsized.com/wp-content/uploads/2013/01/llldemo/images/heart.png') no-repeat; } .ph-heart-nav .effect { position: absolute; bottom: 26px; background-position: 0 0; height: 8px; width: 62px; margin-left:-31px; } .ph-heart-nav a:before { content: ""; display: block; position: absolute; left: 50%; bottom: 20px; background-position: -62px 0; height: 20px; width: 11px; margin-left: -11px; } .ph-heart-nav a:after { content: ""; display: block; position: absolute; left: 50%; bottom: 20px; z-index: 1; background-position: -73px 0; height: 20px; width: 11px; }

CSS - Lavalamp menu, wariant drugi



Pod tajemniczą nazwą kryje się zaskakująco ciekawy efekt animacji. Po umieszczeniu kursowa na barwnym kole, "kalejdoskop" płynnie otwiera się ukazując tekst ukryty pod warstwami kolorów.
Źródło: http://cssdeck.com/labs/ae6iuedj

HTML



<!-- autor: Marco Barría https://twitter.com/marco_bf --> <div class="diafragma"> <div class="text"> CSS3</div> <div class="hoja"> </div> <div class="hoja giro"> </div> </div>

CSS



@import url(http://fonts.googleapis.com/css?family=Open+Sans:700); // VAR @D:280px; // size control @R:(@D/2); @B:(@R/10); // opacity @O: 1; html, body{ height:100%; } body{ background:rgb(250,250,200); } .diafragma{ background:rgb(255,255,255); border-radius:100%; border:2px solid rgb(250,250,200); box-shadow: 0 0 @B 2px rgb(250,250,150); cursor:pointer; position:absolute; top:50%; left:50%; margin-left:-@R; margin-top:-@R; width:@D; height:@D; overflow:hidden; } .diafragma:hover &gt; .hoja{ box-shadow: inset 0 @B 0 rgba(250, 250, 0, @O), inset @B 0 0 rgba(250, 200, 0, @O), inset 0 -@B 0 rgba(250, 150, 0, @O), inset -@B 0 0 rgba(250, 100, 0, @O); } .hoja{ border-radius:100%; box-shadow: inset 0 @R 0 rgba(200, 200, 0, @O/2), inset @R 0 0 rgba(150, 150, 0, @O/2), inset 0 -@R 0 rgba(200, 100, 0, @O/2), inset -@R 0 0 rgba(250, 250, 0, @O/2); position:absolute; width:100%; height:100%; transition:box-shadow 1s; } .giro{ transform:rotateZ(45deg); } .text{ color:rgb(200,200,200); position:absolute; text-align:center; font-family: 'Open Sans', sans-serif; font-size:@R/3; line-height:@D; width:100%; -webkit-font-smoothing: antialiased; }

CSS Diafragma - jak kalejdoskop!



Kilkukrotnie wstawiony tekst w nagłówku H1, który zmienia swoją barwę i położenie.
Źródło: http://cssdeck.com/labs/7y2gz430

HTML


<figure> <h1> Glowing text</h1> <h1> Glowing text</h1> <h1> Glowing text</h1> <h1> Glowing text</h1> <h1> Glowing text</h1> <h1> Glowing text</h1> <h1> Glowing text</h1> <h1> Glowing text</h1> <h1> Glowing text</h1> <h1> Glowing text</h1> <h1> Glowing text</h1> </figure>

CSS


@import url(http://fonts.googleapis.com/css?family=Concert+One); h1 { animation:glow 10s ease-in-out infinite; /* For less laggy effect, uncomment this: animation:none; -webkit-text-stroke:1px #fff; =========== */ } * { box-sizing:border-box; } body { background:#0a0a0a; overflow:hidden; text-align:center; } figure { animation:wobble 5s ease-in-out infinite; transform-origin:center center; transform-style:preserve-3d; } @keyframes wobble { 0%,100%{ transform:rotate3d(1,1,0,40deg); } 25%{ transform:rotate3d(-1,1,0,40deg); } 50%{ transform:rotate3d(-1,-1,0,40deg); } 75%{ transform:rotate3d(1,-1,0,40deg); } } h1 { display:block; width:100%; padding:40px; line-height:1.5; font:900 8em 'Concert One', sans-serif; text-transform:uppercase; position:absolute; color:#0a0a0a; } @keyframes glow { 0%,100%{ text-shadow:0 0 30px red; } 25%{ text-shadow:0 0 30px orange; } 50%{ text-shadow:0 0 30px forestgreen; } 75%{ text-shadow:0 0 30px cyan; } } h1:nth-child(2){ transform:translateZ(5px); } h1:nth-child(3){ transform:translateZ(10px);} h1:nth-child(4){ transform:translateZ(15px); } h1:nth-child(5){ transform:translateZ(20px); } h1:nth-child(6){ transform:translateZ(25px); } h1:nth-child(7){ transform:translateZ(30px); } h1:nth-child(8){ transform:translateZ(35px); } h1:nth-child(9){ transform:translateZ(40px); } h1:nth-child(10){ transform:translateZ(45px); }

CSS3 - Animacja tekstu

Animacja stworzona za pomocą CSS'a - niesamowity efekt!

HTML

<!-- autor: Marco Barría --> <div class="hoja">efcia</div>

CSS

@import url(http://fonts.googleapis.com/css?family=Open+Sans:700); // ============================================ VAR @D:280px; // size control // diametro @R:(@D/2); // radio @B:(@R/8); @O: 0.5; // opacity @A: 2s; // accelerate html, body{ height:100%; } body{ background:rgb(255,255,244); } .hoja{ color:rgb(220,220,226); position:absolute; top:50%; left:50%; margin-left:-@R; margin-top:-@R; width:@D; height:@D; text-align:center; font-family: 'Open Sans', sans-serif; font-size:@R/4; line-height:@D; -webkit-font-smoothing: antialiased; } .hoja:after, .hoja:before{ content:""; border-radius:100%; position:absolute; top:0; left:0; width:100%; height:100%; transform-origin:center center; transform:rotateZ(0deg) scaleX(1) scaleY(1); } .hoja:after{ box-shadow: inset 0 @B 0 rgba(250, 250, 0, @O), inset @B 0 0 rgba(250, 200, 0, @O), inset 0 -@B 0 rgba(250, 150, 0, @O), inset -@B 0 0 rgba(250, 100, 0, @O); animation:rotar @A linear infinite; } .hoja:before{ box-shadow: inset 0 @B 0 rgba(0, 250, 250, @O), inset @B 0 0 rgba(0, 200, 200, @O), inset 0 -@B 0 rgba(0, 150, 200, @O), inset -@B 0 0 rgba(0, 200, 250, @O); animation:rotarIz @A linear infinite; } @keyframes rotar{ 0%{ transform:rotateZ(0deg) scaleX(1) scaleY(1); } 50%{ transform:rotateZ(180deg) scaleX(0.82) scaleY(0.95); } 100%{ transform:rotateZ(360deg) scaleX(1) scaleY(1); } } @keyframes rotarIz{ 0%{ transform:rotateZ(0deg) scaleX(1) scaleY(1); } 50%{ transform:rotateZ(-180deg) scaleX(0.95) scaleY(0.85); } 100%{ transform:rotateZ(-360deg) scaleX(1) scaleY(1); } }
Źródło: http://cssdeck.com/labs/double-ring

CSS Animowany barwny pierścień - robi wrażenie!