នៅពេលអ្នកយកកូនកណ្ដូរទៅដាក់ពីលើវា វានឹងមានចលនាយ៉ាងរស់រវើក។ កូដរបស់មីនុយនៃមិនច្រើនទេ ហើយងាយស្រួលក្នុងការកែ ដើម្បីតម្រូវទៅតាមម៉ូតនៃប្លុករបស់លោកអ្នកផងដែរ។
*** សូមមើលគម្រូ និងវិភាគកូដតាមផ្នែក HTML | CSS |=> Result (លទ្ធផល)
៙ របៀបដាក់ 3D Flip Effect នៅក្នុងប្លុក ៖
- កត់ត្រាចូល (Log In) ក្នុងគណនី Blogger របស់លោកអ្នកជាមុនសិន។
- ចូលទៅកាន់ផ្នែក Layout >> រួចចុចលើតំណអក្សរ Add a Gadget នៅទីតាំងណាមួយ (ឧទាហរណ៍សូមមើលរូបខាងក្រោម)
- រមូរចុះ (scroll down) រកមើល gadget ដែលមានឈ្មោះថា HTML/JavaScript រួចចុចលើវាដើម្បីបើក (មើលរូបខាងក្រោមនេះ)
- ចម្លងកូដខាងក្រោមនេះ យកទៅបិទភ្ជាប់ក្នុង HTML/JavaScript ។
- បន្ថែម ៖ ចំពោះឈ្មោះ widget លោកអ្នកដាក់ ឬមិនបាច់ដាក់ក៏បាន។
កូដដែលត្រូវដាក់ក្នុង HTML/JavaScript
<style>
#v-menu {
margin: 0;
padding: 0;
font-family: Verdana, Helvetica, Arial, sans-serif;
}
#v-menu {
width: 275px;
}
#v-menu ul {
list-style: none;
text-indent: 0px;
}
#v-menu li {
margin-top: 0px;
border-bottom: 1px solid #414141;
}
#v-menu a {
font-family:Verdana, Geneva, sans-serif;
font-size: 15px;
font-weight:bold;
font-variant: inherit;
text-transform:uppercase;
padding: 0px;
color:#CCC;
display: block;
padding: 13px 50px;
height: 26px;
line-height: 26px;
text-decoration: none;
background:#333 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6lJLS6amO4iMzSZjFx_ugF7a9hlCmjci0UWpi0_XHEUFetUpHkojDaey-JLkorvy07_N9o521Rl6PM5wgTlkQ0DKe5BtdYGUSSr-6iK5Chc4HjMoNEqV1SqWYkXep1Vohp4qUkVV_rjY/s1600/tm-menu+icon.png) no-repeat;
text-shadow: 1px 1px 1px #111;
-webkit-transition: all 900ms cubic-bezier(0.47, 0, 0.745, 0.715);
-moz-transition: all 900ms cubic-bezier(0.47, 0, 0.745, 0.715);
-o-transition: all 900ms cubic-bezier(0.47, 0, 0.745, 0.715);
-ms-transition: all 900ms cubic-bezier(0.47, 0, 0.745, 0.715);
transition: all 600ms cubic-bezier(0.47, 0, 0.745, 0.715);
}
#v-menu a:hover {
background: #5e5e5e url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnJkO8ZZjSVABEcnTJJOfaNZUgqSRksJE41Fpy6jubjMq842aNRmhjfib5k6xubn1GX8OgwlhqdlvATaELKV3VEVEseaxnHXaqFtSuFiFG_E6SsKgENff5amoKNmu5JsPMYabqMF_DtoU/s1600/tm-menu+icon+hover.png) no-repeat;
font-size: 14px;
padding: 13px 60px;
-webkit-transition: all 900ms cubic-bezier(0.47, 0, 0.745, 0.715);
-moz-transition: all 900ms cubic-bezier(0.47, 0, 0.745, 0.715);
-o-transition: all 900ms cubic-bezier(0.47, 0, 0.745, 0.715);
-ms-transition: all 900ms cubic-bezier(0.47, 0, 0.745, 0.715);
transition: all 600ms cubic-bezier(0.47, 0, 0.745, 0.715);
}
#v-menu a:visited {
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnJkO8ZZjSVABEcnTJJOfaNZUgqSRksJE41Fpy6jubjMq842aNRmhjfib5k6xubn1GX8OgwlhqdlvATaELKV3VEVEseaxnHXaqFtSuFiFG_E6SsKgENff5amoKNmu5JsPMYabqMF_DtoU/s1600/tm-menu+icon+hover.png) no-repeat;
}
#v-menu a:active {
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnJkO8ZZjSVABEcnTJJOfaNZUgqSRksJE41Fpy6jubjMq842aNRmhjfib5k6xubn1GX8OgwlhqdlvATaELKV3VEVEseaxnHXaqFtSuFiFG_E6SsKgENff5amoKNmu5JsPMYabqMF_DtoU/s1600/tm-menu+icon+hover.png) no-repeat;
}</style>
<div id='v-menu'>
<ul>
<li><a href="#">Page</a></li>
<li><a href="#">Tingmoung</a></li>
<li><a href="#">Facebook</a></li>
<li><a href="#">Learning</a></li>
<li><a href="#">Questions</a></li>
<li><a href="#">About</a></li>
</ul>
</div>
#v-menu {
margin: 0;
padding: 0;
font-family: Verdana, Helvetica, Arial, sans-serif;
}
#v-menu {
width: 275px;
}
#v-menu ul {
list-style: none;
text-indent: 0px;
}
#v-menu li {
margin-top: 0px;
border-bottom: 1px solid #414141;
}
#v-menu a {
font-family:Verdana, Geneva, sans-serif;
font-size: 15px;
font-weight:bold;
font-variant: inherit;
text-transform:uppercase;
padding: 0px;
color:#CCC;
display: block;
padding: 13px 50px;
height: 26px;
line-height: 26px;
text-decoration: none;
background:#333 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6lJLS6amO4iMzSZjFx_ugF7a9hlCmjci0UWpi0_XHEUFetUpHkojDaey-JLkorvy07_N9o521Rl6PM5wgTlkQ0DKe5BtdYGUSSr-6iK5Chc4HjMoNEqV1SqWYkXep1Vohp4qUkVV_rjY/s1600/tm-menu+icon.png) no-repeat;
text-shadow: 1px 1px 1px #111;
-webkit-transition: all 900ms cubic-bezier(0.47, 0, 0.745, 0.715);
-moz-transition: all 900ms cubic-bezier(0.47, 0, 0.745, 0.715);
-o-transition: all 900ms cubic-bezier(0.47, 0, 0.745, 0.715);
-ms-transition: all 900ms cubic-bezier(0.47, 0, 0.745, 0.715);
transition: all 600ms cubic-bezier(0.47, 0, 0.745, 0.715);
}
#v-menu a:hover {
background: #5e5e5e url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnJkO8ZZjSVABEcnTJJOfaNZUgqSRksJE41Fpy6jubjMq842aNRmhjfib5k6xubn1GX8OgwlhqdlvATaELKV3VEVEseaxnHXaqFtSuFiFG_E6SsKgENff5amoKNmu5JsPMYabqMF_DtoU/s1600/tm-menu+icon+hover.png) no-repeat;
font-size: 14px;
padding: 13px 60px;
-webkit-transition: all 900ms cubic-bezier(0.47, 0, 0.745, 0.715);
-moz-transition: all 900ms cubic-bezier(0.47, 0, 0.745, 0.715);
-o-transition: all 900ms cubic-bezier(0.47, 0, 0.745, 0.715);
-ms-transition: all 900ms cubic-bezier(0.47, 0, 0.745, 0.715);
transition: all 600ms cubic-bezier(0.47, 0, 0.745, 0.715);
}
#v-menu a:visited {
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnJkO8ZZjSVABEcnTJJOfaNZUgqSRksJE41Fpy6jubjMq842aNRmhjfib5k6xubn1GX8OgwlhqdlvATaELKV3VEVEseaxnHXaqFtSuFiFG_E6SsKgENff5amoKNmu5JsPMYabqMF_DtoU/s1600/tm-menu+icon+hover.png) no-repeat;
}
#v-menu a:active {
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnJkO8ZZjSVABEcnTJJOfaNZUgqSRksJE41Fpy6jubjMq842aNRmhjfib5k6xubn1GX8OgwlhqdlvATaELKV3VEVEseaxnHXaqFtSuFiFG_E6SsKgENff5amoKNmu5JsPMYabqMF_DtoU/s1600/tm-menu+icon+hover.png) no-repeat;
}</style>
<div id='v-menu'>
<ul>
<li><a href="#">Page</a></li>
<li><a href="#">Tingmoung</a></li>
<li><a href="#">Facebook</a></li>
<li><a href="#">Learning</a></li>
<li><a href="#">Questions</a></li>
<li><a href="#">About</a></li>
</ul>
</div>
*** សម្គាល់ជាសំខាន់ ៖
- លោកអ្នកត្រូវផ្លាស់ប្តូរពាក្យ ៖ " Page, Tingmoung,...." ទៅជាពាក្យដែលលោកអ្នកពេញចិត្ត។
- ចំពោះ សញ្ញាទ្រុងជ្រូក ( # ) ជាកន្លែងបិទភ្ជាប់ Link URL របស់អ្នក។
* អរគុណ ជួបគ្នានៅគន្លឹះបន្ទាប់មកទៀត។...
0 Response to "មីនុយមានចលនា សម្រាប់ប្រើនៅចំហៀងនៃប្លុក"
Post a Comment