<input type="text" value="" placeholder="Text"> <div class="block">Block text</div>
.block { display: none; } input:focus ~ .block { display: initial; }
This Pen is owned by VladChV on CodePen.
See more by @vladchv on CodePen
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.