Home JS special effects CSS3 special effects css3 animation transform fish swimming animation special effects

css3 animation transform fish swimming animation special effects

css3 animation transform fish swimming animation special effects

css3 animation transform fish swimming animation special effects

<head lang="en">
<meta charset="UTF-8">
<title>css3 animation transform鱼游动特效</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<style>
body{
background-color: lightblue;
overflow:hidden;
}
.fishbox{
width: 200px;
height: 200px;
/*background-color: rgba(0,0,0,0.4);*/
position: absolute;
left:0;
top:0;
animation: run 20s linear infinite;
animation-direction: normal;
}
.fish{
width: 174px;
height: 126px;
position: absolute;
left:35%;
top:0;
background:url(image/fish8.png) no-repeat left top;
/*transition:all 0.8s steps(8) ;*/
animation:active1 0.8s steps(8) infinite;

这是一款基于css3 animation transform属性制作的鱼游动动画特效,用background-position属性实现两条游动追逐的鱼。

Disclaimer

All resources on this site are contributed by netizens or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this site are for learning reference only. Please do not use them for commercial purposes. Otherwise, you will be responsible for all consequences! If there is any infringement, please contact us to delete it. Contact information: admin@php.cn

Related Article

Pure css3 3D picture cube rotation animation special effects Pure css3 3D picture cube rotation animation special effects

21 Jul 2016

Pure css3 3D picture cube rotation animation special effects

Introduction to the clever use of css3 animation animation special effects plug-in Introduction to the clever use of css3 animation animation special effects plug-in

17 Mar 2017

This article introduces the method of skillfully using css3 animation animation special effects plug-in.

Pure CSS3 team members introduce animation special effects examples Pure CSS3 team members introduce animation special effects examples

06 Mar 2017

This article mainly introduces pure CSS3 team members to introduce animation special effects examples.

Cute cartoon animal animation special effects based on SVG and CSS3 Cute cartoon animal animation special effects based on SVG and CSS3

19 Jan 2017

This is a cute animal animation special effect based on SVG filter and CSS3. This special effect uses HTML tags and SVG to create the shape of the animal, and uses CSS3 animation to create various animation effects of the animal.

Based on css3 cool page loading animation special effects code_html/css_WEB-ITnose Based on css3 cool page loading animation special effects code_html/css_WEB-ITnose

24 Jun 2016

Based on css3 cool page loading animation special effects code

Pure css3 realizes 3D picture cube rotation animation special effects Pure css3 realizes 3D picture cube rotation animation special effects

28 May 2017

This article describes the implementation of 3D picture cube rotation animation special effects using pure CSS3. It has certain reference value. Let’s take a look at it together.

A detailed discussion of the animation sequence of CSS3 animation special effects A detailed discussion of the animation sequence of CSS3 animation special effects

25 Dec 2017

Everyone knows that animation is a property of CSS. This article mainly introduces the relevant information about the animation sequence (animation) of CSS3 animation special effects. The editor thinks it is quite good, so I will share it with you now and give it as a reference. Let’s follow the editor to take a look, I hope it can help everyone.

CSS3 deformation and animation effects_form special effects CSS3 deformation and animation effects_form special effects

16 May 2016

This article mainly introduces the deformation and animation effects of CSS3. CSS3 animation mainly uses three attributes: transformation, transition and animation. Friends in need can refer to the following

HTML5 css3 progress bar countdown animation special effects code [recommended]_html5 tutorial skills HTML5 css3 progress bar countdown animation special effects code [recommended]_html5 tutorial skills

16 May 2016

The editor below will share with you an HTML5 css3 progress bar countdown animation special effects code [recommended]. Hope it helps everyone. Let’s follow the editor and take a look.

See all articles See all articles

Hot Tools

CSS text is combined into a heart-shaped animation special effect

CSS text is combined into a heart-shaped animation special effect

CSS text is combined into a heart-shaped animation special effect

CSS3 SVG expression flower animation special effects

CSS3 SVG expression flower animation special effects

SS3 SVG confession flower animation special effect is a Valentine's Day animation special effect.

CSS shopping mall websites commonly use left category drop-down navigation menu code

CSS shopping mall websites commonly use left category drop-down navigation menu code

CSS shopping mall websites commonly use left category drop-down navigation menu code

jQuery+CSS3 Valentine's Day love special effects

jQuery+CSS3 Valentine's Day love special effects

jQuery+CSS3 Valentine's Day Love Special Effect is a Valentine's Day hanging swinging heart animation special effect.

css3 spoon scooping up glutinous rice balls animation special effects

css3 spoon scooping up glutinous rice balls animation special effects

A bowl of cute glutinous rice balls expression, a spoon scooping up a glutinous rice balls animation special effects