Theme editor



thxf.org

How To ทำโลโก้เขย่า logo shake

thxf.org 

Administrator
Staff member
Admin
Thread owner

ทำโลโก้เขย่า logo shake

ทำง่ายดังนี้ครับ

ไปที่ extra.less แล้วเพิ่มโค๊ดด้านล่างเข้าไป

CSS:
.p-header-logo:hover,
.p-header-logo--image:hover {
    animation: shake-animation 4.72s ease infinite;
    transform-origin: 50% 50%;
}
.element {
    margin: 0 auto;
    width: 150px;
    height: 150px;
    background: red;
}
@keyframes shake-animation {
    0% {
        transform: translate(0, 0);
    }
    1.78571% {
        transform: translate(5px, 0);
    }
    3.57143% {
        transform: translate(0, 0);
    }
    5.35714% {
        transform: translate(5px, 0);
    }
    7.14286% {
        transform: translate(0, 0);
    }
    8.92857% {
        transform: translate(5px, 0);
    }
    10.71429% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(0, 0);
    }
}

แล้วบันทึกจะได้แบบ thxf.org เลยครับ

ปล.สั่นช้าเร็วแก้ที่ 4.72s เลยครับ
 


Similar threads

Would you like to have a mobile header with logo like this? As you can see you can have a mobile header, but when you scroll the logo will show in the navigation. To achieve this add code below to...
Replies
0
Views
1K
เพิ่มโค๊ดด้านล่างนี้ลงใน extra.less ใน styles ที่ใช้งานอยู่ เลยครับ ?
Replies
0
Views
2K


Back
Top Bottom