A
A
Alexander Donov2015-09-21 05:33:21
css
Alexander Donov, 2015-09-21 05:33:21

How to implement 3D rotation?

The button structure looks like this:

<span>
<span class="action">Показать телефон</span><span class="phone">8800-0000000</span>
</span>

On click, the phone number should appear with a rotation effect, like on
codepen.io/sebastianekstrom/pen/jDmKo
How to implement this in CSS with mandatory support for mobile devices?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
al3ch5, 2015-09-21
@al3ch5

So, what is the crux of the matter? Take and attach to the site. Check if it works in Chrome. If you have a smartphone - look through it ...

O
Optimus, 2015-09-21
Pyan @marrk2

canvas, webgl

A
Alexander Donov, 2015-09-21
@web-54

what does hover have to do with it? i need a click

D
Dmitry Zinchenko, 2015-09-21
@dsent

So what's the problem? You take the css from the example, attach it to the class and on click add this class to the desired block, like
$(document).on('click', '.selector', function(){
$(this).addClass('transform') ;
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question