- This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
I’m trying to recreate the bottom app navigation bar that LG has in their WebOS for TV’s. For those of you that are not familiar with this, a picture of it is below.
I created a container which sits at the bottom of the screen and then created ten or so to be the “tiles.” I then used transforms to tilt these to the right, but this has more problems such as me having to add crazy heights to the divs and them shoving each other down the screen etc.
Can anyone think of a better way to go about this? The code I’ve tried is below (shortened).
.navigation{
position: absolute;
bottom: 0px;
left: 0px;
width: 100%;
height: 250px;
background: red;
overflow: hidden;
.bar{
width: 10%;
height: 600px;
background: blue;
@include rotate(-45deg);
position: relative;
float: left;
}
}
<section class="navigation">
<div class="bar">
</div>
<div class="bar">
</div>
</section>
Without seeing a pen or live link to have a good look, I can only say that I would probably start with a transform: skew(...deg)
myself.
Yep skew should work. Here is a quick starter for you:
http://codepen.io/ilanf/pen/ramzxe/
There is a lot to fix in here though