css onclick animation

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style type="text/css">
.classname {
  -webkit-animation-name: cssAnimation;
  -webkit-animation-duration:3s;
  -webkit-animation-iteration-count: 1;
  -webkit-animation-timing-function: ease;
  -webkit-animation-fill-mode: forwards;
}
@-webkit-keyframes cssAnimation {
  from {
    -webkit-transform: rotate(0deg) scale(1) skew(0deg) translate(100px);
  }
  to {
    -webkit-transform: rotate(0deg) scale(2) skew(0deg) translate(100px);
  }
}
</style>
<script type="text/javascript">
  function ani(){
    document.getElementById('img').className ='classname';
  }
</script>
<title>Untitled Document</title>
</head>

<body>
<input name="" type="button" onclick="ani()" />
<img id="img" src="clogo.png" width="328" height="328" />
</body>
</html>

3.67
3
Mama 75 points

                                    .btn {
  background-color: #ddd;
  border: none;
  color: black;
  padding: 16px 32px;
  text-align: center;
  font-size: 16px;
  margin: 4px 2px;
  transition: 0.3s;
}

.btn:hover {
  background-color: #3e8e41;
  color: white;
}

3.67 (3 Votes)
0
0
5
Rolf Broberg 100 points

                                    &lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;
&lt;style&gt;
.button {
  padding: 15px 25px;
  font-size: 24px;
  text-align: center;
  cursor: pointer;
  outline: none;
  color: #fff;
  background-color: #4CAF50;
  border: none;
  border-radius: 15px;
  box-shadow: 0 9px #999;
}

.button:hover {background-color: #3e8e41}

.button:active {
  background-color: #3e8e41;
  box-shadow: 0 5px #666;
  transform: translateY(4px);
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;h2&gt;Animated Buttons - &quot;Pressed Effect&quot;&lt;/h2&gt;

&lt;button class=&quot;button&quot;&gt;Click Me&lt;/button&gt;

&lt;/body&gt;
&lt;/html&gt;

0
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
on button click animation css animation hover button button hover animation effects hover button animation with icons css hover button animation with icon and details css hover button animation with details css button hover animations css div onClick animation in css animation when clicked css css animation on hovering a button animated on click js animated hover button javascript animation on click css animation click onclick appear animation on hover button animationscss von button onclick css animation image hover animation with button code image hover animation with button how to make a animation when i hover a button in css how to use css3 animation on click onclick css animations css button animation on click css animation on click a button open on click animation css run animation in css on click on hover button animation css css hover animation on button animation in css on click onclick play animation css css onclick animation on image javascript button onclick animation onclick animate css how to get onclick animation in css hover animation button css on hover css animation button by id on hover css animation button button animations on hover html animation onclick css add animation onclick animation on button hover button hover effect with animation button animations on click css adding onclick animations give hover effect to button animate button on hover code to apply hover effect on button html code to apply hover effect on buttons how to add animation on button click in css simple button after clicked animation css how to add animation in button hover button hover animation effects css onClick animation on buttono button mouse hove animation play animation onclick css click animation javascript how to play animation on click javascript hwo to activate a animation on click in javascript how to add button hover effect in css onclick animation in css animate button onclick css css onclick animation with javascript css button hover animations add effect on button hover animate css on click css button animation hover show how to animate a button in html css on hover how to give animation effect to a button in html start animation on button click js how to give onclick animation in css onclick add animation how to give animation on click css how to make button animation on hover css onclick btm make animation button on click animation css on hover btn animation how to add hover effect to button in css javascript animation on click css button clicked animation onclick animation scss css animation on a click of a button how to give animation effect in button when button clicked how to give hover effect to button in css javascript add animation to element on click adding a hover effect to buttons animation in js on click html on click animation hover animation css butto show button on hover with animation js click animation onclick add css javascript animation when click animation css how to work an animation on click in javascript how to add animation on button hover in javascript button animation css hover do an animation onclick css button animation hover effect start animation on click javascript how to make an animation happen onclick javascript css button animation effects hover css animation button hover how to give animation to a button in css css button animated on hover button hover and click animation effect animated button hover effects css button hover animation effects click css animation animation button hover button onclick css animation onhover button animations how to make button hover animations button animation onclick onclick animations css how to add css animation on click using css animation css onlick button hover animation css simple onclick button animation css mouseclick animations in css how to make an onclick effect css animation mouse over effects for button animation in html css on click css animation on button click Button Animation Effects on Hover css Button Animation Effects on Hover cdd Button Animation Effects on Hover | Button Animation Effects on Hover |css hover button animation css onclick animations launch animation from a click javascript hover animation button how to make css animation on click animation running onclick css pure css animations on hover button html onclick trigger animation how to make button hover effect html how to make button hover effect how to start css animation on click with javascript how to start css animation on click on click animation css add hover effect to a button html button hover animation library pure css onclick animation button animation hover css button animation hover how to make an onclick animation javascript how to make an click animation javascripy animation onclick css3 onclick animation examples css animation trigger on click css hover animation button how to trigger an animation on click in js add button onhover animation animate button on hover css How to use the click event JavaScript to trigger an animation on a div inline onclick animation javascript start animation on click how to create a javascript animation with css onclick animation when clicking button css button onclick animation css twist button css animation hover animations css on click button click animation css css on click animate css animations on click moving hover effect to button in css add animation hover effect to button button on hover animation css animation onclick invoke css animation on button click js html onclick animation button hover animations css animate button on hover adding hover effect to button button click css animation hover button animation animation css button hover buttons hover animation css css animation of button hover css animation on hover button animation when hover over button button hover effects animation buttons hover animation animation on button hover css css animation on button hover hohver button animation css animate press down on hover how to animate a button on hover CSS animate button css hover css animate button on hoveer different ways to animate buttons css button click anitmation on img css animation hover button css how to animate with css when i click hover buttons css and html button hover effects how to animate button in css css animation on click javascript css buttons animation on click css animation on click button transform on button click css when click the button hover how to make button click animation how to apply hover effect on button click animation css bootstrap button animation effects button transition effects button css animation button onclick animation javascript play css animation on click function onclick animation press button animation on hover button animation cool ways to make animation on button css css animation run on click how to make on click animation css and javascript start anumation after click css button css hover effects how to add click animation in css run css animation on click button animations css button onhover effect onclick start an animaiton css button in always motion css button in motion css javascript animation on click css keyframe on click button animate button javascript css button with hover effect animation button html button transition button css effects with code button css effects button animation css js animation while click css html click animation css activate animation on click hover effects css button button click animation button css click on press a button animation css interactive button css javascript start css animation onclick css animation on button animation on button css hover button effects tutorial moving button html popup hover effect on button in w3schools css animation after click click effect on btn css how to create effect for button animating buttons css animation buttoneffect css button animation on click onclick animation to div js animation on click html button hover effects button clicked animatio animate link click css button css hover animation html button animation css interactive buttons html css enimation button animate link on click css animate button on click css hover effect css on button button with animation button hover click css button press css buttons animations css button css on click css button click effect animation js click add on click animation to button css css animated buttons hover effect on button in w3schools hover effect button in css click here button css add hover effect to button how to make a button hover effect in css animation buttons vertical click button effect css css click animation button effects css button pressed animation css onclick css animation press add button effects to div button animatpiosn html play css animation on click css buttons with hover effects button effect on click hover button effects css how to add animation in onclick event using javascript animation buttons css button click css hover effect button css button push animation css button animation on hover css pressed button effect how to make a animated button css animated button hover css create buttons to start animation on hover creaye buttons to start animation on hover animated button button hover effect animation button css css button effects anumated button css click effect on button button hover effect css how to run css animation on click animation on click in css animate on click css button click animation click animation button css button hover animation css animation on click transtion down css button hover effects button css button onclick animation css css on click animation buttons hover effect css htlm on click animation button animation button hover animation html animate button on click css pressed animation html animated button button on hover css effects button transform css css button transition examples animated buttons css button hover effects on hover button effects css how to make animation button using css animattion animated add button bootstrap css transiion on click css button animation button css effect trigger keyframe animation on click hover animation css button Hover.css onclick appear slowly css animation how to add animation on hover in css animation button on click on click button css animation click css run animation on click js run animation on click css button click in css click button css hover button css animation keyframes js onclick onclick apply transition css hover effect button css transition on click Aimate after click css animate on click button click effect css add animation on hover css css animate when clicked cssButton effect css button hover effects css animated button hover click effect css animate button button effect on hiver Button animation CSS css button click click effect button css button transition css turn button sideway when hover animated buttons html hover button effect css animation on click css text slide animation css onclick bootstrap 4 animated buttons transition onclick css give motion to button in thml and cc animate button when clicked css button pressed effect button hover animation hover css animation effects add css animation to element on click add css animation on click moving button hover css hover button effect button hover css animation if click make animation javascript button animation javascript animated button css effects buttons css animation css onclick animation on button click w3schools.com blink button flash form on button click css animate css buttons bootstrap button hover effects hover buttons in bootstrap button hover effects css animate button using css icon click effect css css button hover animation how to add animation to a button hover onclick animation css css show animation on click how to do css animations with js how to use css transtion on button click on click start css animation on click animation name css animation start on click css div animation on click on click animate animating object on click in css on click add animations js trigger css animation on button click apply css animation on click javascript do css animation on click javascript css animation in click make an animation on click html5 css animation when click css trigger css animation on click on button click play css animation animation js on click on click css animation css trigger animation on click animation css on click css onclick animate onclick css animation with statue onclick run css animation on click start animation only css start animation when clicked css start animation when clicked animate div on click css onclick animation run keyframes on click play animation on button click js javascript css animation on click javascript trigger animation on click div click css anomation onclick css animation havascript transitions and animations javascript transitions animations how to trigger a keyframe onclick javascript trigger css animation on click begin animate after click css onclick animation javascript add animation to body onclick activate css on click how can i have a keyframes animation start onclick how can i trigger an animation onclick event in javascript animate on click css js onclick naimate animation onclick css CSS animation fast clicking css animation on click jquery run css animation on click click to play animation css on click play animaiton how do I make and animation start on click in js
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source