Home › Forums › CSS › Link to a pure CSS modal already 'poppedup' › Reply To: Link to a pure CSS modal already 'poppedup'
April 10, 2016 at 4:25 am
#240355
Atelierbram
Participant
@beverleyh tested it and it works : thanks for that!
@j7f4f2a4fds2 in order to test is you have to make an account on CodePen and view it in “debug” mode with the #modal1
attached to the url, or just see the one by Beverleyh
This also will work with the jquery hashchange plugin, but if you going for light-weight, this may be overkill, but anyway here is a demo.
.modal:checked+.modal,
.modal:target {
opacity: 1;
pointer-events: all
}