
Xem Demo ngay tại trang này, F5 để thấy hiệu ứng.
Cách thực hiện
Thêm toàn bộ CSS bên dưới vào Template là xong!/* CSS cho trình duyệt Chrome or Cốc Cốc */
@-webkit-keyframes bsw-slideUp {
from {
-webkit-transform: translate(0px, 1000px)
}
to {
-webkit-transform: translate(0px, 0px)
}
}
/* CSS cho trình duyệt Firefox*/
@-moz-keyframes bsw-slideUp {
from {
-moz-transform: translate(0px, 1000px)
}
to {
-moz-transform: translate(0px, 0px)
}
}
/* CSS cho trình duyệt Microsoft Edge */
@-ms-keyframes bsw-slideUp {
from {
-ms-transform: translate(0px, 1000px)
}
to {
-ms-transform: translate(0px, 0px)
}
}
/* CSS cho trình duyệt Opera */
@-o-keyframes bsw-slideUp {
from {
-o-transform: translate(0px, 1000px)
}
to {
-o-transform: translate(0px, 0px)
}
}
@keyframes bsw-slideUp {
from {
transform: translate(0px, 1000px)
}
to {
transform: translate(0px, 0px)
}
}
#sidebar-bsw { /* thay thành ID bạn muốn áp dụng hiệu ứng */
-webkit-animation: bsw-slideUp 3s; /* 3s là khoảng thời gian hiệu ứng thực thi */
-moz-animation: bsw-slideUp 3s;
-ms-animation: bsw-slideUp 3s;
-o-animation: bsw-slideUp 3s;
animation: bsw-slideUp 3s;
}






























hay quá hihi
Trả lờiXóaHihi :v
Xóasao em thêm nó không chạy nhỉ
Trả lờiXóaEm thay #sidebar-bsw thành ID hoặc CLASS của element em muốn áp dụng hiệu ứng mới đc nhé.
Xóadạ được rồi anh. với làm sao để đưa ô bình luận lên đầu ạ
Xóa