Does CSS provide a way to align / orient elements below?
Surprisingly, in horizontal recording mode this is not so.
There are various properties, including writing-mode , direction , text-orientation and flex-direction , which allow you to reconfigure the content stream.
But none of them allows you to lay out content in horizontal recording mode, starting from the bottom right. Maybe someone can fix me about this.
At the same time, hack here (pure CSS):
.cnt { display: flex; flex-direction: row-reverse; flex-wrap: wrap; align-items: flex-start; align-content: flex-start; justify-content: center; text-align: center; width: 200px; height: 300px; border: 1px solid green; transform: scaleY(-1); } .itm { padding: 10px; width: 20px; margin: 10px; background: green; color: white; transform: translate(0px, 0px) scaleY(-1) scaleX(1); transition: transform 0.5s; } .itm:hover { transform: translate(0px, -3px) scaleY(-1.1) scaleX(1.1); }
<div class="cnt"> <div class="itm">8</div> <div class="itm">7</div> <div class="itm">6</div> <div class="itm">5</div> <div class="itm">4</div> <div class="itm">3</div> <div class="itm">2</div> <div class="itm">1</div> </div>
https://jsfiddle.net/o7hr07k6/
Michael_B
source share