Smooth display
HTML
<div class="btn">SHOW ME</div>
<div class="output">Rate: $ 1,0</div>
CSS
.output{
opacity: 0;
transform: translateX(10px);
transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
}
.output.show{
opacity: 1;
transform: translateX(0);
}
.btn, .output{
display: inline-block;
vertical-align: middle
}
.btn{
width: 100px;
background-color: #0a5499;
border-radius: 4px;
text-align: center;
line-height: 40px;
height: 40px;
color: #fff;
cursor: pointer;
}
.output{
width: calc(100% - 140px);
text-align: right;
}
JavaScript
jQuery('.btn').on('click', function () {
jQuery('.output').addClass('show');
})