Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Lorenzo Pieri](https://uploads.teamtreehouse.com/production/profile-photos/1347062/micro_525430_10200921060249526_1293095494_n.jpg)
Lorenzo Pieri
19,772 PointsAnimate 3 FULLPAGE Divs
Good evening friends!
I was playing around with a theme I am building and I decided I wanted to go full nuts and delete it all, starting from scratch again! XD (Thats not the problem)
I would like my new theme to feature a body that contains 3 divs (or sections, if one preferes) that stretch for 100% both height and width, each one of them covering the window fully. Now, that would not be a problem. You just go for the trick
html,body {
height: 100%;
margin: 0;
}
.div {
width: 100%;
height: 100%;
}
This above would do the trick (for IE8 aswell, think about it XD) but that ain't enought (how would it?!).
Now that I have 3 fullpage divs (that at the moment stretch only on the Y axis, I want those DIVs || Sections to take this position:
[ DIV2 ] [ DIV1 ] [ DIV3 ]
Instead of what it is right now: [ DIV1 ] [ DIV2 ] [ DIV3 ]
Not only that! I want to make the transition between the DIVs || Sections animated in 3d so that the overflow is hidden but you can reach those other divs by clicking a button (or something)
Any help?
Appreciated and love you!
1 Answer
![Chris Malcolm](https://secure.gravatar.com/avatar/97f2c21a84fd6ec63a45b8d298444240?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Chris Malcolm
2,909 PointsIs this what you mean?
Lorenzo Pieri
19,772 PointsLorenzo Pieri
19,772 PointsPretty much, but the transition between pages should be Horizontal and with a 3D animation that looks like a ROOM VIEW (So the DIVs should also be placed horizontally)
Chris Malcolm
2,909 PointsChris Malcolm
2,909 PointsO i see this site has room and cube transitions, perhaps looking here you may find what you want.. http://tympanus.net/Development/PageTransitions/
Lorenzo Pieri
19,772 PointsLorenzo Pieri
19,772 PointsYeah, thats exactly where I took the idea from, but I cant manage to work around the codes they are giving, not even from their GitHub repos. I was planning to use the roomLeftIn\Out and roomRightIn\Out for my idea!
Any help on that matter?