- Dapatkan pautan
- X
- E-mel
- Apl Lain
Satu persatu huruf ditaip menjadi ayat
yg tak bermaksud apa-apa, selain demo.
Siapakah yang menaip? CSS. Jika anda
ingin tau bagaimana CSS boleh menaip,
lihat di HTML view. INI HANYA DEMO
<img style="background: #eeeeee; padding: 10px; border-radius: 6px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOjKlpsdjVK8cUVD3myFN512hoeU0f9UoHjl7MqiRdqMIJAbedAjxc9brrc9Cs5_E5Wm2zrcO2DDnoEpzCuXV7ukuASgxpAqU-re_hYgApMeiSq5wUfa6SPHznHAGRakpvo9vEyIEGBPgz/s400/depan+komputer.gif" /><br/>
<br/>
<div style="background: linear-gradient(120deg, #dddddd 80%, #cccccc 20%); padding-left: 10px; max-width: 350px; overflow: hidden; margin: auto;">
<div class="jeme">
<div>Satu persatu huruf ditaip menjadi ayat</div>
<div>yg tak bermaksud apa-apa, selain demo.</div>
<div>Siapakah yang menaip? CSS. Jika anda</div>
<div>ingin tau bagaimana CSS boleh menaip,</div>
<div>lihat di HTML view. INI HANYA DEMO</div></div></div>
<div style="margin-right: 10px; text-align: right;"><a href="https://orandableg.blogspot.com/2021/12/sedang-menaip.html"><span style="border: 1px solid; padding: 2px;">>></span></a></div>
<style type="text/css">
.jeme div:nth-child(1) {
width: 46ch;
animation: menaip 8s steps(46);
white-space: nowrap;
overflow: hidden;
border-right: 2px solid;
font-family: monospace;
}
@keyframes menaip {
0% {
width: 0ch;
}
100% {
width: 46ch;
}
}
.jeme div:nth-child(2) {
width: 46ch;
animation: taip 80s steps(46);
white-space: nowrap;
overflow: hidden;
border-right: 2px solid;
font-family: monospace;
}
@keyframes taip {
0% {
width: 0ch; border-right: 0px;
}
10% {
width: 0ch;
}
20% {
width: 46ch; border-right: 2px solid;
}
100% {
width: 46ch;
}
}
.jeme div:nth-child(3) {
width: 46ch;
animation: giling 80s steps(46);
white-space: nowrap;
overflow: hidden;
border-right: 2px solid;
font-family: monospace;
}
@keyframes giling {
0% {
width: 0ch; border-right: 0px;
}
20% {
width: 0ch;
}
30% {
width: 46ch;
}
40% {
width: 46ch; border-right: 2px solid;
}
100% {
width: 46ch;
}
}
.jeme div:nth-child(4) {
width: 46ch;
animation: ketik 80s steps(46);
white-space: nowrap;
overflow: hidden;
border-right: 0px;
font-family: monospace;
}
@keyframes ketik {
0% {
width: 0ch; border-right: 0px;
}
30% {
width: 0ch; border-right: 0px;
}
31% {
border-right: 2px solid;
}
40% {
width: 46ch; border-right: 2px solid;
}
100% {
width: 46ch;
}
}
.jeme div:nth-child(5) {
width: 46ch;
animation: gol 80s steps(46);
white-space: nowrap;
overflow: hidden;
border-right: 0px;
font-family: monospace;
}
@keyframes gol {
0% {
width: 0ch; border-right: 0px;
}
40% {
width: 0ch; border-right: 0px;
}
41% {
border-right: 2px solid;
}
48% {
width: 46ch; border-right: 2px solid;
}
100% {
width: 46ch;
}
}
</style>
<br/>
<div style="background: linear-gradient(120deg, #dddddd 80%, #cccccc 20%); padding-left: 10px; max-width: 350px; overflow: hidden; margin: auto;">
<div class="jeme">
<div>Satu persatu huruf ditaip menjadi ayat</div>
<div>yg tak bermaksud apa-apa, selain demo.</div>
<div>Siapakah yang menaip? CSS. Jika anda</div>
<div>ingin tau bagaimana CSS boleh menaip,</div>
<div>lihat di HTML view. INI HANYA DEMO</div></div></div>
<div style="margin-right: 10px; text-align: right;"><a href="https://orandableg.blogspot.com/2021/12/sedang-menaip.html"><span style="border: 1px solid; padding: 2px;">>></span></a></div>
<style type="text/css">
.jeme div:nth-child(1) {
width: 46ch;
animation: menaip 8s steps(46);
white-space: nowrap;
overflow: hidden;
border-right: 2px solid;
font-family: monospace;
}
@keyframes menaip {
0% {
width: 0ch;
}
100% {
width: 46ch;
}
}
.jeme div:nth-child(2) {
width: 46ch;
animation: taip 80s steps(46);
white-space: nowrap;
overflow: hidden;
border-right: 2px solid;
font-family: monospace;
}
@keyframes taip {
0% {
width: 0ch; border-right: 0px;
}
10% {
width: 0ch;
}
20% {
width: 46ch; border-right: 2px solid;
}
100% {
width: 46ch;
}
}
.jeme div:nth-child(3) {
width: 46ch;
animation: giling 80s steps(46);
white-space: nowrap;
overflow: hidden;
border-right: 2px solid;
font-family: monospace;
}
@keyframes giling {
0% {
width: 0ch; border-right: 0px;
}
20% {
width: 0ch;
}
30% {
width: 46ch;
}
40% {
width: 46ch; border-right: 2px solid;
}
100% {
width: 46ch;
}
}
.jeme div:nth-child(4) {
width: 46ch;
animation: ketik 80s steps(46);
white-space: nowrap;
overflow: hidden;
border-right: 0px;
font-family: monospace;
}
@keyframes ketik {
0% {
width: 0ch; border-right: 0px;
}
30% {
width: 0ch; border-right: 0px;
}
31% {
border-right: 2px solid;
}
40% {
width: 46ch; border-right: 2px solid;
}
100% {
width: 46ch;
}
}
.jeme div:nth-child(5) {
width: 46ch;
animation: gol 80s steps(46);
white-space: nowrap;
overflow: hidden;
border-right: 0px;
font-family: monospace;
}
@keyframes gol {
0% {
width: 0ch; border-right: 0px;
}
40% {
width: 0ch; border-right: 0px;
}
41% {
border-right: 2px solid;
}
48% {
width: 46ch; border-right: 2px solid;
}
100% {
width: 46ch;
}
}
</style>
Catatan oleh
Orandableg
- Dapatkan pautan
- X
- E-mel
- Apl Lain
Ulasan