Thứ Hai, 19/05/2025
Loading...
  • Login
Hoàng Giang Nam Blog
  • Home
  • WordPress
    • WordPress
    • Woocommerce
  • Windows
  • Office
  • Phần Mềm
  • Thủ thuật
  • Linux
    • Ubuntu
    • CentOS
    • VPS – Server
    • Web Server
No Result
View All Result
Hoàng Giang Nam Blog
  • Home
  • WordPress
    • WordPress
    • Woocommerce
  • Windows
  • Office
  • Phần Mềm
  • Thủ thuật
  • Linux
    • Ubuntu
    • CentOS
    • VPS – Server
    • Web Server
No Result
View All Result
  • Login
Hoàng Giang Nam Blog
No Result
View All Result
Home Wordpress
CSS cuộn hình ảnh khi rê chuột vào hình ảnh

CSS cuộn hình ảnh khi rê chuột vào hình ảnh

admin by admin
01/01/2025
Share on FacebookShare on Twitter

Ví dụ đoạn CSS cuộn hình ảnh khi rê chuột vào hình ảnh

/* Cài đặt ảnh nền cho cột với background image */
.elementor-704 .elementor-element.elementor-element-XXXXXXXX:not(.elementor-motion-effects-element-type-background) > .elementor-column-wrap, 
.elementor-704 .elementor-element.elementor-element-XXXXXXXX > .elementor-column-wrap > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-image: url("https://hoanggiangnam.com/wp-content/uploads/2020/04/neve-perfume-shop-10.jpg");
    margin-left: auto!important;
    margin-right: auto!important;
    background-position: top center;
    background-size: 100% auto!important;
    height: 100%;
    background-repeat: no-repeat;
}

/* Thay đổi vị trí nền khi hover vào cột */
.elementor-704 .elementor-element.elementor-element-XXXXXXXX:not(.elementor-motion-effects-element-type-background) > .elementor-column-wrap:hover {
    background-position: bottom center!important;
    transition: background-position 4s linear 0s;
}

Nếu trong elementor hoặc flatsome thì bạn chỉ cần chú ý đoạn css như dưới. ví dụ như class dưới thì mình chỉ định khi rê chuột vào class .elementor-4284 .elementor-element.elementor-element-4eb57a0:hover > .elementor-element-populated sẽ cuộn xuống

/* Thay đổi vị trí nền khi hover vào phần tử */
.elementor-4284 .elementor-element.elementor-element-4eb57a0:hover > .elementor-element-populated:hover {
    background-position: bottom center!important; /* Di chuyển nền xuống vị trí bottom center */
    transition: background-position 2s linear 0s; /* Thêm hiệu ứng chuyển động trong 2 giây */
}

 

admin

admin

Next Post
Delete custom field in database wordpress

Tạo thêm Custom Fields cho product trong Woocommerce

Please login to join discussion

Recommended.

Xóa, Sửa, Nâng dung lượng RAM ẢO – Swap trên Ubuntu

Xóa, Sửa, Nâng dung lượng RAM ẢO – Swap trên Ubuntu

01/01/2025
Delete custom field in database wordpress

Tạo thêm Custom Fields cho product trong Woocommerce

01/01/2025

Trending.

HuananZhi X79 / X99 Motherboard BIOS POST codes

HuananZhi X79 / X99 Motherboard BIOS POST codes

01/01/2025
Tăng / Giảm giá SALE toàn bộ cửa hàng, Xóa Giá Sale

Tăng / Giảm giá SALE toàn bộ cửa hàng, Xóa Giá Sale

01/01/2025
Tạo file IMG Windows.GZ bằng VM VirtualBox để cài đặt trên VPS Digitalocean, Linode

Tạo file IMG Windows.GZ bằng VM VirtualBox để cài đặt trên VPS Digitalocean, Linode

31/12/2024

Code nút Liên Hệ đẹp

18/12/2024
Hướng Dẫn Thêm IPv4 và Cấu Hình tại VPS OVH – Centos 8

Hướng Dẫn Thêm IPv4 và Cấu Hình tại VPS OVH – Centos 8

19/12/2024
Hoàng Giang Nam

Blog chia sẽ kiến thức lập trình, source code, themes, plugin, phần mềm & thủ thuật máy tính...

Follow Us

Danh mục

  • CentOS
  • Chung
  • Server Email
  • Thủ thuật máy tính
  • Ubuntu
  • VPS – Server
  • Web Server
  • Windows
  • Woocommerce
  • Wordpress

Recent News

Disable Web Search Results in Windows 10/11 Start Menu

16/01/2025
Hướng dẫn lấy Client ID + Client Secret + Refresh Token Google Drive API

Hướng dẫn lấy Client ID + Client Secret + Refresh Token Google Drive API

19/12/2024
  • About
  • Advertise
  • Privacy & Policy
  • Contact

© 2024 Hoanggiangnam.com

No Result
View All Result
  • Home
  • Phần Mềm
  • Thủ thuật máy tính
  • WordPress
  • Ubuntu
  • Office
  • Photography
  • Windows

© 2024 Hoanggiangnam.com

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
Click to Copy