viernes, 8 de febrero de 2013

Filled Under: , ,

Envejecer imágenes con CSS – Dominios – Teleconferencias – Credito

Hay muchas maneras sencillas de dar aspecto retro a nuestras imágenes y losfiltros son una buena muestra de ello. Por eso esto que viene a continuación debe entenderse sólo como un camino más. Eso sí, vamos a dejar la imagen hecha unos zorros para que parezca realmente vieja.

El truco consiste en solapar sobre la imagen una caja con una imagen de fondo parcialmente transparente creada al efecto, añadirle un color también semitransparente que le quite todo el contraste a la original y de forma adicional, insertarle unas sombras oscuras en los bordes.

Para ello creamos una clase que en este ejemplo hemos llamado.antiguo y con un:after le añadimos esa imagen sucia antes comentada. Yo usé una concreta pero evidentemente podéis usar la textura que os parezca oportuno, recomendando desde aquí el formato png con transparencia.

El resultado es este y después pongo el código con el que lo hice. He añadido unhover que "limpia" la imagen para que podáis notar la diferencia con respecto a la fotografía original:



No me digáis que no parece una postal antigua o un cromo viejo de esos deVida y Color. Bien, pues sólo hace falta añadir este CSS a vuestra hoja de estilo y luego añadir la claseantiguo a cualquier imagen:

.antiguo {
position:relative;
display:table; /* Para centrado de imagen */
margin: 0 auto;
}
/* Sólo para Blogger que mete cosas raras al subir imágenes */
.antiguo a {
margin:0 auto !important;
}
.antiguo a:after {
content:"";
position: absolute;
top: 0;
left:0;
display:block;
width:100%; /* La caja solapada ocupará todo el ancho y alto*/
height: 100%;
/* A continuación la imagen que le da el aspecto antiguo y un color semitransparente */
background: rgba(162,148,85,.5) url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXXiymDwnpQAW7JTZlGJBWJf5s-cWNmcWj8yiK-ZB2f6tY7AZcyiqq-EziRc3xgt_IZXwQ1idc-zG2FGJdhxBR4v7fWMZg11-MAg_O5zQ1jQIm3IiAQ0uiBALzxU_qGTRVSiv-AwqlsSk/s1600/textura.png") no-repeat center center;
/* Independientemente de su tamaño, el fondo se extiende ocupando toda la caja */
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
/* Para teminar, unas sombritas oscuras */
-webkit-box-shadow: inset 0 0 80px #333;
-moz-box-shadow: inset 0 0 80px #333;
-o-box-shadow: inset 0 0 80px #333;
box-shadow: inset 0 0 80px #333;
}

El centrado, las sombras, el color rgba y la imagen solapada (textura.png), los podéis alterar al gusto. Una vez el CSS esté ajustado a vuestra conveniencia sólo es cuestión de meter la imagen en undiv con claseantiguo:

div class="antiguo"
a href="URL_ENLACE"img src="URL_IMAGEN" //a
/div


Lo anterior sirve para modificaruna imagen en concreto, pero si queremos quetodas las del blog luzcan igual y teniendo en cuenta que Blogger nos inserta automáticamente una clase llamadaseparator cuando subimos una imagen desde el editor de entradas, pues podemos añadir este otro código que además incluye en su últimaestrofa el revelado de la imagen original al pasar el puntero por encima. Si no queréis que se puedan cambiar simplemente eliminad esa última declaración:



.separator a {
position:relative;
display:inline-block;
}
.separator a:after {
content:"";
position: absolute;
top: 0;
left:0;
display:block;
width:100%;
height: 100%;
background: rgba(162,148,85,.5) url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXXiymDwnpQAW7JTZlGJBWJf5s-cWNmcWj8yiK-ZB2f6tY7AZcyiqq-EziRc3xgt_IZXwQ1idc-zG2FGJdhxBR4v7fWMZg11-MAg_O5zQ1jQIm3IiAQ0uiBALzxU_qGTRVSiv-AwqlsSk/s1600/textura.png") no-repeat center center;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
-webkit-box-shadow: inset 0 0 80px #333;
-moz-box-shadow: inset 0 0 80px #333;
-o-box-shadow: inset 0 0 80px #333;
box-shadow: inset 0 0 80px #333;
}
.separator:hover a:after {
display:none;
}

En otra ocasión -no muy lejana- veremos cómo hacer algo parecido pero sólo con tintes de color.

Donate Car To Charity CALIFORNIA DONATE CAR FOR TAX CREDITDONATE CARS IN MADONATE YOUR CAR SACRAMENTOHOW TO DONATE A CAR IN CALIFORNIA DONATE YOUR CAR FOR KIDS,CAR INSURANCE QUOTES COLORADO ,NUNAVUT CULTURE,DAYTON FREIGHT LINESHARDDRIVE DATA RECOVERY SERVICES,DONATE A CAR IN MARYLAND,MOTOR REPLACEMENTS,CHEAP DOMAIN REGISTRATION HOSTING,DONATING A CAR IN MARYLAND

MESOTHELIOMA LAW FIRMDONATE CAR TO CHARITY CALIFORNIAHARDDRIVE DATA RECOVERY SERVICESDONATE A CAR IN MARYLAND DONATING A CAR IN MARYLAND,DONATE CARS ILLINOIS,CRIMINAL DEFENSE ATTORNEYS FLORIDA ,BEST CRIMINAL LAWYER IN ARIZONASTRUCTURED ANNUITY SETTLEMENT,ASBESTOS LAWYERS,NUNAVUT CULTURE,DAYTON FREIGHT LINES ,Bextra Bankruptcy Dental Plan Private JetPero tuve que ser Mundial Football consolidating FIFA World Cup web host rating,register web address,online psychology degree,her first lesbian sex, make extra money ,make money fast and easy,addwords y mejor obtuve un credit application,visa gift carda,Mesothelioma law firm,voip phone service,Selling annuity payments for cash,Sell my structured settlement,Sell structured settlement,Structured settlement,Structured settlement companies,Sell my annuity payments lump sum,Car accident lawyer Denver,Accident injury attorneys,Sell my annuity

Online casino Low Credit Line Credit Cards Mobile casino Live casino DONATE CAR FOR TAX CREDIT dui lawyer scottsdale DONATE YOUR CAR FOR MONEY Donate car to charity California Seo services Casino accident lawyers in los angeles Dwi lawyer Motor Replacements Online College Course Casino reviews Social media tools New social media platforms Social media examiner motorcycle lawyer los angeles AUTOMOBILE ACCIDENT ATTORNEY Life Insurance Co Lincoln Donate Car for Tax Credit HARDDRIVE DATA RECOVERY SERVICES Webex Costs cheap domain registration hosting Donate Your Car for Kids Attorney dallas mesothelioma lawyer personal injury attorney springfield mo Computer science classes online maritime lawyer houston Sell Annuity Payment Business finance group mesothelioma lawsuits Social media strategies Php programmers for hire home phone internet bundle Php programmers ONLINE MOTOR INSURANCE QUOTES mesothelioma lawyer texas Mortgage adviser best accident attorneys Donate a Car in Maryland Bankruptcy lawyer bus accident attorney los angeles Make money online Australia how to donate a car in california Hire php developers Service business software insurance medical temporary mesothelioma claims Car Insurance Quotes PA mesothelioma law firms DUI lawyer Hire php programmers Criminal lawyer domains yahoo tucson car accident attorney Car Insurance Companies car insurance in south dakota Business VOIP Solutions dallas mesothelioma attorneys mesothelioma help Best social media platforms los angeles auto accident attorneys miami personal injury lawyer Gas/Electricity pharmacist jobs in chicago Online Christmas cards Dayton Freight Lines accident attorney in los angeles Donate old cars to charity Motor Insurance Quotes CHEAP CAR INSURANCE IN VIRGINIA How to donate a car in California Dallas mesothelioma attorneys Criminal defense lawyer Donate Cars Illinois better conferencing calls Criminal lawyer Miami Register Free Domains fortis health insurance temporary mesothelioma survival rates Hire php developer canada personals yahoo domain registration yahoo Best Criminal Lawyers in Arizona structured settlement investments Mesothelioma Law Firm asbestos exposure lawyers Learning adobe illustrator Seo companies WordPress theme designers fast cash for house MASSAGE SCHOOL DALLAS TEXAS structured settlement purchasers Best social media platforms for business mesothelioma law suit Dedicated Hosting Dedicated Server Hosting Donate Your Car Sacramento ROYALTY FREE IMAGES STOCK Italian cooking school Adobe illustrator classes Christmas cards florida car insurance company mesotheloma Html email Social media platforms for business Custom WordPress theme designer Online colledges auto accident attorney CAR INSURANCE IN SOUTH DAKOTA Best Seo company best consolidation loan student Business management software mesothelioma suit motorcycle accident attorney sacramento Psd to WordPress Seo company Photo Christmas cards Custom Christmas cards buy structured settlements FORENSICS ONLINE COURSE forensics online course Online Motor Insurance Quotes WordPress themes for designers WordPress hosting Proud Italian cook Futuristic Architecture Auto Accident Attorney LIFE INSURANCE CO LINCOLN DALLAS MESOTHELIOMA ATTORNEYS sell structured settlement calculator Social media management Tech school VIRTUAL DATA ROOMS earthlink business internet Personal Injury Lawyers Social media platforms Virtual Data Rooms criminal defense federal lawyer Psd to html Health Records Personal Health Record domain yahoo saskatchewan auto insurance Best criminal lawyer in Arizona Online Classes DAYTON FREIGHT LINES mesothelioma ct Social media campaigns AUTO ACCIDENT ATTORNEY Donate Car to Charity California Met Auto Nunavut Culture Donate Cars in MA ANNUITY SETTLEMENT DONATING USED CARS TO CHARITY How to Donate A Car in California DONATE CARS IN MA car insurance companies st louis mesothelioma attorney illinois mesothelioma lawyer Asbestos Lawyers mesothelioma law suits Structures Annuity Settlement mesothelioma attorney florida domain name yahoo benchmark lending Cheap Car Insurance for Ladies Car Insurance Quotes Colorado Annuity Settlements mesothelioma information injury attorney baton rouge injury lawyer houston tx STRUCTURED ANNUITY SETTLEMENT Paperport Promotional Code Hard drive Data Recovery Services selling structured settlement Asbestos Lung Cancer donate your car for kids Cheap Domain Registration Hosting Donating a Car in Maryland Criminal Defense Attorneys Florida state of california car insurance Car Donate Car Insurance Quotes Utah PHD on Counseling Education DONATE CARS ILLINOIS MESOTHELIOMA LAW FIRM virtual data rooms Holland Michigan College Online Colleges CRIMINAL DEFENSE ATTORNEYS FLORIDA HOW TO DONATE A CAR IN CALIFORNIA BEST CRIMINAL LAWYER IN ARIZONA World Trade Center Footage Massage School Dallas Texas Psychic for Free Donate Old Cars to Charity BETTER CONFERENCING CALLS Dallas Mesothelioma Attorneys Donate your car for money integrated ehr Personal Injury Law Firm Car Insurance Quotes MN Donate your Car for Money Cheap Auto Insurance in VA Forensics Online Course Home Phone Internet Bundle Nunavut culture