23 November 2014

Spoiler Pos Dengan Efek Zoom Gambar

Tiada ulasan:
 
Demo di sini

Cara Pemasangan

Langkah 1: 'Log in' ke dalam 'Blogger dashboard' anda --> pergi ke 'Template' --> 'Edit HTML', dan gunakan Ctrl+F untuk mencari kod  ]]></b:skin>

Langkah 2:Di atas kod ]]></b:skin> yang telah ditemui tersebut,'copy' dan 'paste' kod dibawah ini

html {
background: white;
}
* {
margin: 0;
padding: 0;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
}
figure {
margin: 0 0 1.3rem 0;
-webkit-transition: .125s linear;
-moz-transition: .125s linear;
-ms-transition: .125s linear;
-o-transition: .125s linear;
transition: .125s linear;
}
figure img {
max-width: 100%;
height: auto;
}
body {
max-width: 480px;
width: 90%;
margin: 3em auto;
font-size: 92%;
line-height: 1.3rem;
font-family: Georgia;
position: relative;
*zoom: 1;
}
body:before, body:after {
content: "";
display: table;
}
body:after {
clear: both;
}
p {
margin-bottom: 1.3rem;
}
article {
margin-bottom: 3rem;
position: relative;
*zoom: 1;
}
article:before, article:after {
content: "";
display: table;
}
article:after {
clear: both;
}
article figure {
float: left;
width: 32.5%;
}
article section:first-of-type {
float: right;
width: 62.5%;
}
article section:last-of-type {
display: none;
visibility: hidden;
}
section {
-webkit-transition: .125s linear;
-moz-transition: .125s linear;
-ms-transition: .125s linear;
-o-transition: .125s linear;
transition: .125s linear;
}
input[type=checkbox] {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
width: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
}
[for="read_more"] {
position: absolute;
bottom: -3rem;
left: 0;
width: 100%;
text-align: center;
padding: .65rem;
box-shadow: inset 1px 1px rgba(0, 0, 0, 0.1), inset -1px -1px rgba(0, 0, 0, 0.1);
}
[for="read_more"]:hover {
background: rgba(0,0,0,.5);
color: rgb(255,255,255);
}
[for="read_more"] span:last-of-type {
display: none;
visibility: hidden;
}
input[type=checkbox]:checked ~ section {
display: block;
visibility: visible;
width: 100%;
}
input[type=checkbox]:checked ~ figure {
width: 100%;
}
input[type=checkbox]:checked ~ [for="read_more"] span:first-of-type {
display: none;
visibility: hidden;
}
input[type=checkbox]:checked ~ [for="read_more"] span:last-of-type {
display: block;
visibility: visible;
}

Langkah 3

Dekat tempat menulis pos,pilih HTML yang bersebelahan Compose dan pastekan kod ini didalamnya

<h2 style="background-color: white; font-family:
'OFL Sorts Mill Goudy TT', Georgia, Times, serif; font-size: 1.6em;
font-weight: normal; line-height: 2.5em; margin: 20px 0px 0.4em; padding: 0px;">
Parahraph Title</h2>

<article>
<input type="checkbox" id="read_more" role="button">
<label for="read_more" onclick="">
<span>Show More</span><span>Hide Content</span>
</label>

<figure>
<img src="URL of a picture" alt="Image ALT Tag" />
</figure>

<section>
<p>First Paragraph Intro</p>
</section>

<section>
<p>Second Paragraph</p>
<p>Third Paragraph</p>
</section></article>

Gantikan URL of a picture kepada URL gambar yang anda inginkan untuk efek zoom.Gantikan First,Second dan Third Paragraph kepada ayat yang anda inginkan

Tiada ulasan:

Catat Ulasan

TERIMA KASIH UNTUK KOMENKOMEN TERBARU

 
© 1986. Aideal Fitri - fitri1986 Malaysian Blogger