Advertisement
Hisabeel

How to put white background hover on posts?

Sep 28th, 2017
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 4.54 KB | None | 0 0
  1. Bem, este tutorial explica como é aplicado um fundo branco à passagem do rato numa imagem de um post, veja como pode ser feito:
  2.  
  3.    1. Vá ao seu código e procuro por <style>;
  4.    2. Entre <style> coloque este código:
  5.         /*--Codes for Posts--*/
  6.         .lovely{
  7.         position:absolute;
  8.         width:204px;
  9.         height:0%;
  10.         opacity:0.0;
  11.         background:#fff;
  12.         z-index:3;
  13.         -webkit-transition: all 0.8s ease;
  14.         -moz-transition: all 0.8s ease;
  15.         -o-transition: all 0.8s ease;
  16.         transition: all 0.8s ease;
  17.         }
  18.  
  19.         #entry:hover .lovely{
  20.         opacity:0.4;
  21.         height:88%;
  22.         -webkit-transition: all 0.8s ease;
  23.         -moz-transition: all 0.8s ease;
  24.         -o-transition: all 0.8s ease;
  25.         transition: all 0.8s ease;}
  26.  
  27.         .lovely{
  28.         width:238px;
  29.         height:0%;
  30.         bottom:12px;
  31.         left:3px;
  32.         position:absolute;
  33.         opacity:0;
  34.         z-index:9999;
  35.         background:rgba(300,300,300,0.4);
  36.         transition:1.5s ease;
  37.         -o-transition:1.5s ease;
  38.         -moz-transition:1.5s ease;
  39.         -webkit-transition:1.5s ease;
  40.         }
  41.  
  42.         #entry:hover .lovely{
  43.         opacity:1;
  44.         height:94%;
  45.         }
  46.  
  47.         .glamour{
  48.         width:0px;
  49.         height:94%;
  50.         top:12px;
  51.         right:12px;
  52.         position:absolute;
  53.         opacity:0;
  54.         z-index:9999;
  55.         background:rgba(300,300,300,0.4);
  56.         transition:2s ease;
  57.         -o-transition:2s ease;
  58.         -moz-transition:2s ease;
  59.         -webkit-transition:2s ease;}
  60.    
  61.         #entry:hover .glamour{
  62.         opacity:1.0;
  63.         width:233px;}
  64.         /*--End--*/
  65.  
  66.    3. Depois de colocado, procura por </head>;
  67.    4. Entre {block:Photo} coloque este código:
  68.         <div class=“lovely”></div><div class=“glamour”></div>, como se pode ver no código abaixo:
  69.  
  70.         {block:Photo}{block:IndexPage}
  71.         <div class=“lovely”></div><div class=“glamour”></div>
  72.         <div class=“perma”>
  73.         <a href={permalink}” title=“go to the permalink page”>{notecount} notes</a> &nbsp;☓&nbsp; <a title=“click to reblog” href={ReblogURL}>repost</a></center></div>{/block:IndexPage}
  74.  
  75.         {block:IndexPage}
  76.         <img src={PhotoURL-HighRes}” alt={PhotoAlt}” width=270px;>
  77.         {/block:IndexPage}
  78.         {block:permalinkpage}{LinkOpenTag}<center>
  79.         <img src={PhotoURL-HighRes}” alt={PhotoAlt}” width=360px;/>
  80.         {LinkCloseTag}</center>{/block:permalinkpage}
  81.         {/block:Photo}
  82.  
  83.  
  84.  
  85. x ----------------------------------------------------------------------------------------------------------------------------------- x
  86.  
  87.  
  88. Well, this tutorial explains how you applied a white background with the passage of the mouse in the posts, see what to do.
  89.  
  90.    1. Go  to the code and search for <style>;
  91.    2. Beneath <style> put this code:
  92.         /*--Codes for Posts--*/
  93.         .lovely{
  94.         position:absolute;
  95.         width:204px;
  96.         height:0%;
  97.         opacity:0.0;
  98.         background:#fff;
  99.         z-index:3;
  100.         -webkit-transition: all 0.8s ease;
  101.         -moz-transition: all 0.8s ease;
  102.         -o-transition: all 0.8s ease;
  103.         transition: all 0.8s ease;
  104.         }
  105.  
  106.         #entry:hover .lovely{
  107.         opacity:0.4;
  108.         height:88%;
  109.         -webkit-transition: all 0.8s ease;
  110.         -moz-transition: all 0.8s ease;
  111.         -o-transition: all 0.8s ease;
  112.         transition: all 0.8s ease;}
  113.  
  114.         .lovely{
  115.         width:238px;
  116.         height:0%;
  117.         bottom:12px;
  118.         left:3px;
  119.         position:absolute;
  120.         opacity:0;
  121.         z-index:9999;
  122.         background:rgba(300,300,300,0.4);
  123.         transition:1.5s ease;
  124.         -o-transition:1.5s ease;
  125.         -moz-transition:1.5s ease;
  126.         -webkit-transition:1.5s ease;
  127.         }
  128.  
  129.         #entry:hover .lovely{
  130.         opacity:1;
  131.         height:94%;
  132.         }
  133.  
  134.         .glamour{
  135.         width:0px;
  136.         height:94%;
  137.         top:12px;
  138.         right:12px;
  139.         position:absolute;
  140.         opacity:0;
  141.         z-index:9999;
  142.         background:rgba(300,300,300,0.4);
  143.         transition:2s ease;
  144.         -o-transition:2s ease;
  145.         -moz-transition:2s ease;
  146.         -webkit-transition:2s ease;}
  147.    
  148.         #entry:hover .glamour{
  149.         opacity:1.0;
  150.         width:233px;}
  151.         /*--End--*/
  152.  
  153.    3. After placing, search for </head>;
  154.    4. Beneath {block:Photo} put this code:
  155.         <div class=“lovely”></div><div class=“glamour”></div>, as can be seen in the code below:
  156.  
  157.         {block:Photo}{block:IndexPage}
  158.         <div class=“lovely”></div><div class=“glamour”></div>
  159.         <div class=“perma”>
  160.         <a href={permalink}” title=“go to the permalink page”>{notecount} notes</a> &nbsp;☓&nbsp; <a title=“click to reblog” href={ReblogURL}>repost</a></center></div>{/block:IndexPage}
  161.  
  162.         {block:IndexPage}
  163.         <img src={PhotoURL-HighRes}” alt={PhotoAlt}” width=270px;>
  164.         {/block:IndexPage}
  165.         {block:permalinkpage}{LinkOpenTag}<center>
  166.         <img src={PhotoURL-HighRes}” alt={PhotoAlt}” width=360px;/>
  167.         {LinkCloseTag}</center>{/block:permalinkpage}
  168.         {/block:Photo}
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175. Produced by Hisabeel © All rights reserved
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement