Text Fade Out es una idea de CSS-Tricks que utiliza jQuery para crear un efecto de esfumado en textos, cortándolos a cierta altura y agregando un botón para expandirlos.
Obviamente, se requiere tener agregada la librería jQuery antes de </head>:
Obviamente, se requiere tener agregada la librería jQuery antes de </head>:
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js' type='text/javascript'/>
Y luego, el script con el efecto que es muy corto:
<script type='text/javascript'>
//<![CDATA[
$(function() {
var $el, $ps, $up, totalHeight;
$(".textfadeout-demo .textfadeout-button").click(function() {
totalHeight = 0
$el = $(this);
$p = $el.parent();
$up = $p.parent();
$ps = $up.find("p:not('.textfadeout-more')");
$ps.each(function() { totalHeight += $(this).outerHeight(); });
$up.css({ "height": $up.height(), "max-height": 9999 })
.animate({ "height": totalHeight });
$p.fadeOut();
return false;
});
});
//]]>
</script>
Por último, el CSS que hace referencia a las clases definidas que pueden tener diferentes estilos y que con muy pocos agregados, deberían funcionar en cualquier navegador, incluyendo Internet Explorer:
<style>
.textfadeout-demo { /* es el rectángulo contenedor */
background-color: #505961;
color: #EEE;
max-height: 150px; /* esto define la altura */
overflow: hidden; /* y le decimos que "se corte" allí, ocultando el reesto */
padding: 20px;
position: relative;
width: 300px;
}
.textfadeout-demo .textfadeout-more { /* el esfumado inferior */
background-image: -moz-linear-gradient(top, transparent, #101921);
background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, transparent),color-stop(1, #101921));
filter:progid:DXImageTransform.Microsoft.gradient(startColorStr='#00101921', EndColorStr='#FF101921')
bottom: 0;
left: 0;
padding: 30px 0;
position: absolute;
text-align: center;
width: 100%;
}
.textfadeout-button { /* el botón para expandir */
border-top: 1px solid #96D1F8;
background: #65A9D7;
background: -moz-linear-gradient(top, #3E779D, #65A9D7);
background: -webkit-gradient(linear, left top, left bottom, from(#3E779D), to(#65A9D7));
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#FF3E779D'; EndColorStr='#FF65A9D7');
padding: 5px 10px;
text-decoration: none;
-moz-border-radius: 8px;
-webkit-border-radius: 8px;
border-radius: 8px;
-moz-box-shadow: rgba(0,0,0,1) 0 1px 0;
-webkit-box-shadow: rgba(0,0,0,1) 0 1px 0;
box-shadow: rgba(0,0,0,1) 0 1px 0, rgba(0,0,0,90) 0 0 10px, rgba(0,0,0,90) 0 0 20px, rgba(0,0,0,90) 0 0 30px;
text-shadow: rgba(0,0,0,.4) 0 1px 0;
}
.textfadeout-button:hover {
border-top-color: #28597A;
background: #28597A;
color: #CCC;
}
.textfadeout-button:active {
border-top-color: #1B435E;
background: #1B435E;
}
</style>
Ya está; ahora podremos utilizar las tres clases definidas para crear el HTML:
<div class="textfadeout-demo">
<p> ....... el texto a mostrar ....... </p>
<p class="textfadeout-more"><a href="#" class="textfadeout-button">leer más</a></p>
</div>


TABLA - FUENTES - FONTS
SOUV2
- SOUV2P.TTF - 57 KB
 - SOUV2I.TTF - 59 KB
 - SOUV2B.TTF - 56 KB
 - SOUV2T.TTF - 56 KB
 
- bai_____.ttf - 46 KB
 - babi____.ttf - 47 KB
 - bab_____.ttf - 45 KB
 - balaram_.ttf - 45 KB
 
- SCAGRG__.TTF - 73 KB
 - SCAGI__.TTF - 71 KB
 - SCAGB__.TTF - 68 KB
 
- inbenr11.ttf - 64 KB
 - inbeno11.ttf - 12 KB
 - inbeni11.ttf - 12 KB
 - inbenb11.ttf - 66 KB
 - indevr20.ttf - 53 KB
 
- Greek font: BibliaLS Normal
 - Greek font: BibliaLS Bold
 - Greek font: BibliaLS Bold Italic
 - Greek font: BibliaLS Italic
 - Hebrew font: Ezra SIL
 - Hebrew font: Ezra SIL SR
 
Disculpen las Molestias

TABLA - INFORMÁTICA - UTILIDADES
- 2011
 - enero 2011 (25 posts)
 - Oloblogger
 - Vagabundia
 - CSS3 GENERATOR - OLOBLOGGER
 - HAGA SU PROPIA MUSICA
 - Vagabundia
 - 100 packs de íconos surtidos - Vagabundia
 - tablas en css
 - Curvas y redondeces - Vagabundia
 - Vagabundia
 - Oloblogger
 - Vagabundia
 - 3.9. The background-size’ property - w3.org
 - Patterns con CSS3
 - Oloblogger
 - Usar JSON para mostrar Twitter - Vagabundia
 - Sliderman: Un script para hacer sliders sin librer...
 - Thought of you - Vagabundia
 - Efecto cinta adhesiva en imágenes - Oloblogger
 - Bloggers - Vagabundia
 - BigImg: Otra forma de insertar imágenes gigantes -...
 - Vagabundia: : “Los parámetros de los feeds de Blog...
 - Alojar scripts para Blogger Edición rápida - OLOBL...
 - Plugins sociales aleatorios para Facebook
 - Fire - shadow
 - Neon - shadow
 - 2010
 - diciembre
 - efecto de linterna de Zachary Johnson en www.zachs...
 - Shadow - Sombreados en los Textos - Vagabundia
 - 4. DICCIONARIO BÍBLICO ADVENTISTA DEL SÉPTIMO DÍA
 - 3. DICCIONARIO BÍBLICO ADVENTISTA DEL SÉPTIMO DÍA
 - 2. DICCIONARIO BÍBLICO ADVENTISTA DEL SÉPTIMO DÍA
 - 3. DICCIONARIO BÍBLICO ADVENTISTA DEL SÉPTIMO DÍA
 - octubre
 - septiembre
 - julio
 - junio
 - mayo
 - HTML ASCII Reference - The ASCII Character Set
 - Typing Arabic and Farsi Numerals
 - Smoothing Screen Fonts
 - Outlook 2000
 - Outlook Express 5
 - Netscape Messenger 4.7
 - Netscape
 - Internet Explorer
 - Windows XP: Language Settings
 - Windows 2000: Language Settings
 - General Unicode Information
 - General Farsi Unicode Information
 - Unicode in Internet Explorer 5, 5.5 and 6
 - Unicode in Firefox for Windows
 - UNICODE - Internet Explorer
 - abril
 - marzo
 - Porque no me abre el disco local c
 - Glosario Informático (H-Z)
 - Glosario Informático (C-G)
 - Glosario Informático (A-B)
 - febrero
 - Direcciones about: FIREFOX
 - ASCII codes table - Format of standard characters
 - 24 Character entity references in HTML 4
 - Table of character entity references in HTML 4
 - HTML Codes
 - Index of Elements - Html
 - ISO 639. Code for the representation of the names ...
 - ASCII stands for American Standard Code
 - enero
 - 2009
 - CUADRO GENERAL CONTENIDO MITOLOGÍA Y RELIGIÓN
 - MITOLOGÍA HINDÚ
 - Conceptos Hinduistas (1428)SC
 - Category:Hindu (mythology) (3256)SC
 - Category:Hindu mythology (3270)SC
 - Categoría:Mitología hindú (3288)SC (indice)
 - Categoría:Mitología hindú (videos) (3289)SC
 - Conceptos Hinduista (A - G) SK y SC (videos) (3294)SC
 - Conceptos Hinduistas (2919)SK · (2592)SK
 - JUDAISMO
 - VAISHNAVISMO
 - Ärî Garga-Samhita
 - Oraciones Selectas al Señor Supremo
 - Devotees Vaishnavas
 - Dandavat pranams - All glories to Srila Prabhupada
 - Hari Katha
 - SWAMIS VAISHNAVAS
 - DEVOTOS VAISHNAVAS - FACEBOOK
 - Santos Católicos
 - EGIPTO
 - Archivo Cervantes
 - Sivananda Yoga
 - Neale Donald Walsch
 - ENCICLOPEDIA - INDICE
 
No hay comentarios:
Publicar un comentario