CSS3 animation: the image gradually gets bigger when the mouse is on it and gradually shrinks when the mouse leaves it

CSS3 animation: the image gradually gets bigger when the mouse is on it and gradually shrinks when the mouse leaves it

Effect check address: Tour plan (uplanok.com)

Code:

img{width: 100%;border-radius: 3px;transition: all 2s;}
img:hover{transform: scale(1.2);}

The img outer tag element needs to be set to overflow: hidden, otherwise the image will overflow and cover other content after being enlarged.

This is the end of this article about CSS3 animation that makes an image gradually larger when the mouse is placed on it and gradually smaller when the mouse is removed from it. For more relevant CSS3 image zooming in and out, please search previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future!

<<:  What is ssh? How to use? What are the misunderstandings?

>>:  How to use html2canvas to convert HTML code into images

Recommend

Using MySQL database with Python 3.4 under Windows 7

The detailed process of using MySQL database with...

Ubuntu installation cuda10.1 driver implementation steps

1. Download cuda10.1: NVIDIA official website lin...

Analysis of the advantages and disadvantages of MySQL stored procedures

MySQL version 5.0 began to support stored procedu...

CentOS7 configuration Alibaba Cloud yum source method code

Open the centos yum folder Enter the command cd /...

Docker-compose tutorial installation and quick start

Table of contents 1. Introduction to Compose 2. C...

Detailed process of installing and configuring MySQL and Navicat prenium

Prerequisite: Mac, zsh installed, mysql downloade...

Detailed explanation of triangle drawing and clever application examples in CSS

lead Some common triangles on web pages can be dr...

Summary of pitfalls in importing ova files into vmware

Source of the problem As we all know, all network...

Alibaba Cloud Centos7.3 installation mysql5.7.18 rpm installation tutorial

Uninstall MariaDB CentOS7 installs MariaDB instea...

How to create a responsive column chart using CSS Grid layout

I have been playing around with charts for a whil...

How to prompt and open hyperlink a

<br />The countless information on the Inter...

Detailed tutorial on using the Prettier Code plugin in vscode

Why use prettier? In large companies, front-end d...

Tutorial on setting up scheduled tasks to backup the Oracle database under Linux

1. Check the character set of the database The ch...

A brief discussion of several browser compatibility issues encountered

background Solving browser compatibility issues i...