Snippett html CSS

Area dedicata al linguaggio HTML. Nozioni di base,esempi,script,programmazione
Rispondi
Avatar utente
eniac
PhpBB Expert
PhpBB Expert
Messaggi: 760
Iscritto il: 18/07/2013, 19:14
Link del Forum: Http://www.cesimmunizioni.eu/forum
Località: Abruzzo
Contatta:

Snippett html CSS

Messaggio da eniac »

Uno snippett molto simpatico da aggiungere ai vostri siti web... DEMO
HTML

Codice: Seleziona tutto

<head>
<link rel="stylesheet" href="glow.css" type="text/css" />
</head>
<figure>
	<h1>PhpBB-Store</h1>
	<h1>PhpBB-Store</h1>
	<h1>PhpBB-Store</h1>
	<h1>PhpBB-Store</h1>
	<h1>PhpBB-Store</h1>
	<h1>PhpBB-Store</h1>
	<h1>PhpBB-Store</h1>
	<h1>PhpBB-Store</h1>
	<h1>PhpBB-Store</h1>
	<h1>PhpBB-Store</h1>
	<h1>PhpBB-Store</h1>
</figure>
</head>
CSS (glow)

Codice: Seleziona tutto

@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); }
phpBB version : 3.3.11
php version : 8.2.16
Avatar utente
Dr.House
Amministratore
Amministratore
Messaggi: 2173
Iscritto il: 08/01/2012, 8:24
Link del Forum: www.phpbb-italia.it
Località: Reggio Calabria
Contatta:

Re: Snippett html CSS

Messaggio da Dr.House »

grazie per la pubblicità.In altro post ti avevo corretto e scritto che il codice va inserito tra i tag code in apertura e chiusura non usare la text-area,perchè diventa scomodo a chi vuole prelevarlo,quando phpbb3 ha già la funzione nativa.
Per il futuro il codice dovrà avere questo aspetto:

Codice: Seleziona tutto

 xxxxxxxyyyzzzzzz
Avatar utente
eniac
PhpBB Expert
PhpBB Expert
Messaggi: 760
Iscritto il: 18/07/2013, 19:14
Link del Forum: Http://www.cesimmunizioni.eu/forum
Località: Abruzzo
Contatta:

Re: Snippett html CSS

Messaggio da eniac »

Chiedo scusa...ci starò più attento in futuro.
phpBB version : 3.3.11
php version : 8.2.16
Rispondi