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

Analysis of the method of setting up scheduled tasks in mysql

This article uses an example to describe how to s...

Zabbix configuration DingTalk alarm function implementation code

need Configuring DingTalk alarms in Zabbix is ​​s...

Detailed tutorial on using VMware WorkStation with Docker for Windows

Table of contents 1. Introduction 2. Install Dock...

How to change the root user's password in MySQL

Method 1: Use the SET PASSWORD command mysql> ...

Implementation of MySQL multi-version concurrency control MVCC

Transaction isolation level settings set global t...

Docker installs Redis and introduces the visual client for operation

1 Introduction Redis is a high-performance NoSQL ...

A simple way to restart QT application in embedded Linux (based on QT4.8 qws)

Application software generally has such business ...

Detailed installation and configuration of MySql on Mac

1. Download and install Download the community ed...

CentOS 8 installation diagram (super detailed tutorial)

CentOS 8 is officially released! CentOS fully com...

Creative About Us Web Page Design

Unique “About”-Pages A great way to distinguish yo...

About IE8 compatibility: Explanation of the X-UA-Compatible attribute

Problem description: Copy code The code is as fol...