Here is a demo. The correct animation CSS:
.image { position: absolute; top: 50%; left: 50%; width: 120px; height: 120px; margin:-60px 0 0 -60px; -webkit-animation:spin 4s linear infinite; -moz-animation:spin 4s linear infinite; animation:spin 4s linear infinite; } @-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } } @-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } } @keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }
<img class="image" src="http://i.stack.imgur.com/pC1Tv.jpg" alt="" width="120" height="120">
Related Posts:
- JPG vs. JPEG image formats
- Changing image size in Markdown
- Changing image size in Markdown
- How do I add an image to an HTML file?
- Embed image in a
- Is element block level or inline level?
- How do I auto-resize an image to fit a ‘div’ container?
- How to vertically align an image inside a div
- CSS Display an Image Resized and Cropped
- How to place a text next to the picture?
- CSS: Moving the text down a few pixels but keeping the background still?
- Transparent background in JPEG image
- Bootstrap 4 images thumbnail classes
- CSS: Moving the text down a few pixels but keeping the background still?
- How to view .img files?
- How to view .img files?
- Rotate an image in image source in html
- CSS Background image not loading
- Change color of PNG image via CSS?
- How to “crop” a rectangular image into a square with CSS?
- Specifying width and height as percentages without skewing photo proportions in HTML
- CSS centred header image
- Java: Rotating Images
- How to fade an image with CSS without opacity?
- CSS Animation onClick
- what does this mean ? image/png;base64?
- Define an ‘s src attribute in CSS [duplicate]
- Auto scrolling with CSS
- Is it possible to set the equivalent of a src attribute of an img tag in CSS?
- How to add image that is on my computer to a site in css or html?
- How to place Text and an Image next to each other in HTML?
- How to have an anim gif on a link and play it on hover and reset
- Adding a blurred border in CSS
- Contain an image within a div?
- Android: failed to convert @drawable/picture into a drawable
- CSS force image resize and keep aspect ratio
- HTML5 Canvas Rotate Image
- How can I fill a div with an image while keeping it proportional?
- Removing whitespace between HTML elements when using line breaks
- How to get multiple images to auto resize and stay centered within a div
- CSS rotation cross browser with jquery.animate()
- language flags (Image links) with css not work in WordPress costum theme
- How am I supposed to use index.html?
- Is it bad practice to comment out single lines of CSS with //?
- How to draw a half circle (border, outline only) [closed]
- android image button
- How to keep footer at bottom of screen [duplicate]
- Bring element to front using CSS
- hide div tag on mobile view only?
- Showing an image from an array of images – Javascript
- U8Qtu
- how to include other plugins css files in a shortcode?
- Why isn’t my theme processing SASS?
- Limit function to specific post category
- Different background-image by category
- Add a Different CSS Class Into The Body Tag of Different WP Pages
- I want to change my post titles from h2 to H1
- WooCommerce: The model of e-mail is displaying only the html, not css [closed]
- Twig + wordpress – how to get filemtime for style.css
- CSS to remove “comments count” icon from main page [closed]
- Deregister default wp-admin css on login screen only?
- Link theme options page using ACF to styles
- How to i style the elements from the TinyMCE
- Overwrite a plugin’s CSS?
- How to find which .mo file is responsible for displaying a particular localized string?
- style variations hurt the editing performance
- Modal dialog under the backdrop
- CSS style and app.js not loading
- How to set different color in a select box due to selection with css
- WordPress 404 on style.css but not on all pages
- How to display post_content from database in different on template page?
- How to generate a rtl.css file for themes?
- remove blank space where sidebar was
- How to save the output of php variables used in inline css code to the main style.css?
- How to insert post into a page?
- How can i put image to come first than the title?
- Problem with float:left – unexpected behavior [closed]
- How to resize video lightbox popup in wordpress? [closed]
- Responsive table on ios safari
- How can I get rid of the distance when I’m using list-style-type: none? [closed]
- How do I hide a specific div class inside ? [closed]
- theme injecting css into wp-admin
- can i custom rendered content from API?
- custom css in one page
- Post interior margin in twenty eleven theme
- inner-wrap div pushing custom table far down on page
- How enqueue CSS out of theme folder?
- Styling not refreshing for old visitors on WordPress
- Option value not getting updated until page refresh in WordPress
- change breakpoint widths for divi theme tablet view
- How to include Elementor CSS in custom php file [closed]
- How to create a “Most Popular” & “Latest” TAB in WordPress
- How to add CSS to WordPress
- How to add arbitrary custom CSS to a WordPress Block Theme using Site Editor?
- Wrap post titles containing slashes on narrow viewports
- Import css file from node_modules using @wordpress/scripts
- WordPress search field won’t get wider
- Where did I put this one line of css?
- What is unsafe about this CSS?