#notifjo { right: 10px; /* posisi di paling kanan */ top: 10px; /* posisi di paling atas */ width: 320px; /* lebar notif */ height: auto; /* tinggi notif otomatis */ overflow: hidden; background: rgba(255,255,255,0.9); /* warna background */ border-radius: 5px; /* nilai sudut bundar */ border: 1px solid #ddd; /* garis batas luar */ z-index: 999999; position: fixed; /* posisi melayang */ -webkit-animation: fadeOutnotif 10s linear forwards; /* notif 10 detik */ -moz-animation: fadeOutnotif 10s linear forwards; -o-animation: fadeOutnotif 10s linear forwards; -ms-animation: fadeOutnotif 10s linear forwards; animation: fadeOutnotif 10s linear forwards; } #notifjo a { display:block; text-decoration:none;} #notifjo span { display: block; padding: 15px 15px; pointer-events: none; text-align: left; float: left; } #notifjo span h2 { font-size: 12px; /* Ukuran text */ line-height: 21px; color: #222; /* Warna text */ font-weight: normal; letter-spacing: 0px; } /* Blog johanes djogzs.blogspot.com */ @-webkit-keyframes fadeOutnotif { 0% { opacity: 1;} 10% { opacity: 1;} 90% { opacity: 1; -webkit-transform: translateY(0px);} 99% { opacity: 0; -webkit-transform: translateY(-30px);} 100% { opacity: 0;} } @-moz-keyframes fadeOutnotif { 0% { opacity: 1;} 10% { opacity: 1;} 90% { opacity: 1; -moz-transform: translateY(0px);} 99% { opacity: 0; -moz-transform: translateY(-30px);} 100% { opacity: 0;} } @-o-keyframes fadeOutnotif { 0% { opacity: 1;} 10% { opacity: 1;} 90% { opacity: 1; -moz-transform: translateY(0px);} 99% { opacity: 0; -moz-transform: translateY(-30px);} 100% { opacity: 0;} } @-ms-keyframes fadeOutnotif { 0% { opacity: 1;} 10% { opacity: 1;} 90% { opacity: 1; -moz-transform: translateY(0px);} 99% { opacity: 0; -moz-transform: translateY(-30px);} 100% { opacity: 0;} } @keyframes fadeOutnotif { 0% { opacity: 1;} 10% { opacity: 1;} 90% { opacity: 1; -moz-transform: translateY(0px);} 99% { opacity: 0; -moz-transform: translateY(-30px);} 100% { opacity: 0;} } Copy the code. Open Blogger>Template>Edit HTML. And paste the code just before ]]>.
Notifikasi : 1. Text Kamu. 2. Naruto shippuden tamat. 3. Gintama ceritanya mulai ngawur xD. 4. Hello world. This will be what your notification show. Copy the code. And paste at <body>.
1. Text Kamu.
2. Naruto shippuden tamat.
3. Gintama ceritanya mulai ngawur xD.
4. Hello world.
#notifjo { ... ... right: 10px; /* posisi di paling kanan */ top: 10px; /* posisi di paling atas */ ... ... } You may change the position of the notification box by edit the value at the CSS.
- Copyright © 2013 NexTech - Metrominimalist - Powered by Blogger - Designed by Johanes Djogan -