Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8318471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T21:59:08+00:00 2026-06-08T21:59:08+00:00

I am rotating a coin along Y axis by 90deg through CSS. Is there

  • 0

I am rotating a coin along Y axis by 90deg through CSS. Is there a way so that I can show the thickness of the coin after it have rotated, I thought I can scaleY after the coin have rotated along Y axis but this doesn’t seem to work. Please suggest some way to do the same if it is possible. link_on_js fiddle for the same. Please use webkit browsers to open the link.

css

.coin {
    display: block;
    background: url("url-to-image-of-coin.jpg");
    background-size: 100% 100%;
    width: 100px;
    height: 100px;
    margin: auto;
    border-radius: 100%;
    transition: all 500ms linear;
}

.flip {
    transform: rotateY(180deg);
}

html

<div class="coin"></div>

jquery

$('.coin').click(function() {
    $(this).toggleClass('flip');
});

fiddle

http://jsfiddle.net/7EtLu/22/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T21:59:11+00:00Added an answer on June 8, 2026 at 9:59 pm

    You can use pseudo-elements to give an effect that is similar. Here is an example: http://jsfiddle.net/joshnh/y7rQL/

    <div class="coin"></div>
    body {
        transform: perspective(500px);
        transform-style: preserve-3d;
    }
    .coin {
        background-image: url("http://www.coolemails4u.com/wp-content/uploads/2010/10/indian_rupee.png");
        background-size: 100% 100%;
        border-radius: 100%;
        height: 100px;
        margin: 50px auto;
        position: relative;
        transition: .5s linear;
        transform-style: preserve-3d;
        width: 100px;
    }
    .coin:after {
        background-color: #262626;
        background-image: -webkit-linear-gradient(hsla(0,0%,100%,.25), hsla(0,0%,0%,.25));
        bottom: 0;
        content: '';
        left: 45px;
        position: absolute;
        top: 0;
        transform: rotateY(-90deg);
        transform-origin: 100% 50%;
        width: 5px;
        z-index: -10;
    }
    .coin:before {
        background-color: #262626;
        background-image: -webkit-linear-gradient(hsla(0,0%,100%,.25), hsla(0,0%,0%,.25));
        border-radius: 100%;
        content: '';
        height: 100px;
        left: 0;
        position: absolute;
        top: 0;
        transform: translateZ(-5px);
        width: 100px;
    }
    .coin:hover {
        transform: rotateY(90deg);
    }​
    

    Also, here is a version that spins 180 degrees (it isn’t quite as nice though): http://jsfiddle.net/joshnh/Bz22S/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an html table that needs rotating / axis swaping. It can be
I have a rotating slide show I'm working on that uses Javascript. I use
I have rotating back ground image after 20 seconds with the fadeIn and fadeOut.
I have an image which is rotating and what I want is that a
I have some rotating images with hidden captions that I'd like to expose with
I have a rotating sphere that the user rotates by applying a virtual force,
I have a rotating banner that I need to add links to example .
I have downloaded Rotating Wheel Control project. It is a XCode project that uses
I have a rotating div that contains a number of divs around its edge.
So I have a rotating canvas element which has an arc drawn inside it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.