FERMER LE MENU


Menu général de Wifeo :

Accueil de Wifeo

Connexion

Créer un site

Nouveautés Wifeo

Blog

Forum

Boite à outils

Documentations

Wifeo Creative Code


<<< back to homepage for others creatives tricks

PLAY WITH CSS3 FONT

WIFEO / code
BLOGGERS, SHARE THIS CREATIVE DEMO ON YOUR WEBSITE :
<p data-height="360" data-theme-id="9277" data-slug-hash="http://codepen.io/wifeo/pen/rxbof?editor" data-default-tab="result" data-user="wifeo" class='codepen'>See this Pen on <a href='http://codepen.io/wifeo/pen/rxbof?editor'>Codepen</a> <script async src="//codepen.io/assets/embed/ei.js"></script><div align="center">View source code on <a href="http://www.wifeo.com/code/47-play-with-css3-font.html">wifeo/code</a></div>
On Facebook
On Twitter
On Google+
On LinkedIn

CSS CODE :

.text {
  font-size: 90px;
  font-weight: bold;
  padding: 70px 70px;
  text-align: center;
  position: relative;
  z-index: 1;
  color: #000000;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-background-clip: text;
  -moz-text-fill-color: transparent;
  -ms-background-clip: text;
  -ms-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  background-image:url(http:YOUR-URL-IMAGE.jpg);
  background-size: cover;
  -webkit-animation:anim 3s infinite linear;
  -moz-animation:anim 3s infinite ease-in;
  -ms-animation:anim 3s infinite ease-in;
  animation:anim 3s infinite ease-in;
}

.clip-text:before,
.clip-text:after {
  position: absolute;
  z-index: 0;
  content: '';
}

.clip-text:before {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: inherit;
  background-size: cover;
  -webkit-animation:anim 3s infinite ease-in;
  -moz-animation:anim 3s infinite ease-in;
  -ms-animation:anim 3s infinite ease-in;
  animation:anim 3s infinite ease-in;
}

.clip-text:after {
  top: 20px;
  right: 20px;
  bottom: 20px;
  left: 20px;
  background-color: #ffffff;
}

.clip-text_one {
  background-image:url(http:YOUR-URL-IMAGE.jpg);
  background-size: cover;
  -webkit-animation:anim 3s infinite linear;
  -moz-animation:anim 3s infinite ease-in;
  -ms-animation:anim 3s infinite ease-in;
  animation:anim 3s infinite ease-in;
}

@-webkit-keyframes anim
{0%{background-position: top;}50%{background-position: bottom;}100%{background-position: top;}}
@-moz-keyframes anim
{0%{background-position: top;}50%{background-position: bottom;}100%{background-position: top;}}
@-ms-keyframes anim
{0%{background-position: top;}50%{background-position: bottom;}100%{background-position: top;}}
@keyframes anim
{0%{background-position: top;}50%{background-position: bottom;}100%{background-position: top;}}

HTML CODE :

<div style="position:relative;">
  <div align="center" style="font-family: 'Montserrat', sans-serif; ">
        <div class="clip-text clip-text_one">
          <div class="text">WIFEO / code</div>
        </div>
  </div>
</div>


COMMENT THIS CREATIVE CODE

comments powered by Disqus

Difficulty level :
hard :
medium :
easy :
very easy :
Soigner ses interfaces utilisateur est primordial. Cela passe en partie par l'utilisation de "tricks" et animations CSS/jQuery.

Nous avons choisi de partager sous licence libre creative commons nos astuces et développements de tous les jours afin d'échanger, mais aussi de faciliter la vie des développeurs.
Wifeo Creative Code est un concentré de nos développements quotidiens: servez-vous, utilisez-les et adaptez-les sans aucune restriction. N'hésitez pas à les partager avec vos contacts !
Creative Commons License
Open code base by Wifeo is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Based on a work at http://www.wifeo.com/code.
Permissions beyond the scope of this license may be available at http://www.wifeo.com/contact-wifeo.php.


Nous soutenons : Secours Populaire . Enfants du desert . Medecins Sans Frontieres
Copyright © Wifeo.com - Tous droits réservés BOURDET SARL R.C.S.503777286 VERSAILLES