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
Pawel Wronski
8,872 PointsTransitions and transforms
Hi,
I would like to learn make smilar button like on http://modernizr.com/ (button is in transition)
<div class="sign">
<p><div class="box"></p>
<p>Rock and roll</p>
</div>
</div>
.box {
width: 100px;
height: 25px;
border-radius: 8px;
background: #4682B4;
transition: width 2s;
}
.box:hover {
background: #F08080;
width:500px;
}
.sign {
font-size:25px;
color:red;
}
what should I change to make button on the left of text and text constant in one line. so circle "text in one line" to rectangle under text in line.
2 Answers
Adam Sackfield
Courses Plus Student 19,663 PointsDo you mean something like this pen
Pawel Wronski
8,872 PointsClose but no :)) I would like to do text separate from animation. But animation would move under the text.
Circle TEXT --->> CIIIIIRC TEXT LEEEEE
when somebody touch LINK text circle is resaizing to the right and move under text.