/    Sign up×
Community /Pin to ProfileBookmark

How to flip div using CSS 3-D transformation and transitions without using jquery/javascript?

If you are looking for something like this you are at right place, this is kind of a tutorial to do CSS 3-D flip.Okay lets get started with our HTML code.

[code]
<section class=”container” >
<div id=”card”>
<figure class=”front”></figure>
<figure class=”back face”></figure>
</div>
</section>

[/code]

Figure: Defines self-contained content, like illustrations, diagrams, photos, code listings, etc.

Now lets start styling our HTML in CSS.

[code]
.container {
width: 259px;
height: 350px;
position: relative;
margin: 10px auto 40px;
-webkit-perspective: 800px;
-moz-perspective: 800px;
-o-perspective: 800px;
perspective: 800px;
}
[/code]

To activate 3-D space, an element needs perspective. The value of perspective determines the intensity of the 3-D effect. Think of it as a distance from the viewer to the object. The greater the value, the further the distance, so the less intense the visual effect.perspective: 2000; yields a subtle 3-D effect, as if we were viewing an object from far away.perspective: 100; produces a tremendous 3-D effect, like a tiny insect viewing a massive object.

to post a comment
CSS

4 Comments(s)

Copy linkTweet thisAlerts:
@drwebsitesukJun 24.2014 — Really nice. keep it up dude
Copy linkTweet thisAlerts:
@disissidauthorJul 02.2014 — Really nice. keep it up dude[/QUOTE]

Thank You ?

Here is the link of new article.

do like our facebook page.
Copy linkTweet thisAlerts:
@disissidauthorJul 02.2014 — @drwebsitesuk Thank you ?

here is my new article.

do like our facebook page.
Copy linkTweet thisAlerts:
@disissidauthorJul 03.2014 — Really nice. keep it up dude[/QUOTE]

Thank you ?

I have completed this article in hours with a lot of effort, you have to just click a button to get updated with more such articles in future.Like our facebook page.
×

Success!

Help @disissid spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...