max-height: 90%;
overflow: auto;
border: none ему:.a-image {
border: none;
}<a class="a-image"><img src="...
#red {
transition: opacity 0.2s;
}#red.hidden {
opacity: 0.5;
}$('#red').click(e => $(e.target).toggleClass('hidden'));
// или
document.querySelector('#red').addEventListener('click', e => {
e.target.classList.toggle('hidden');
});
.recent:hover .info {.info находится не внутри, а после .recent. Делайте так:.recent:hover ~ .info {
.item {
transition: transform 1s;
}.move {
transform: translateY(150px);
}$(document).on('click', '.item', function() {
$(this).toggleClass('move');
});<input type="checkbox" id="xxx">
<label class="item" for="xxx">
...input[type="checkbox"] {
display: none;
}
input[type="checkbox"]:checked + .item {
transform: translateY(150px);
}
margin-left и margin-top.display: inline-block;.30% и 50%, например.
<div class="heading">
<p>hello, world!!</p>
<p>fuck the world</p>
<p>fuck everything</p>
</div>.heading {
display: inline-block;
position: relative;
width: 900px;
height: 70px;
background: red;
overflow: hidden;
font-size: 60px;
}
.heading > p {
text-transform: uppercase;
color: #fefefe;
position: absolute;
width: 900px;
top: 0;
left: 0;
animation: text 6s infinite;
margin: 0;
padding: 0;
}
.heading > p:nth-child(1) { animation-delay: 0s; }
.heading > p:nth-child(2) { animation-delay: -4s; }
.heading > p:nth-child(3) { animation-delay: -2s; }
@keyframes text {
0% {
opacity: 1;
}
25%, 100% {
margin-left: 50px;
opacity: 0;
}
}