You Don't Need JavaScript for That! (robots.thoughtbot.com)
almost 5 years ago from Edward Loveall, Independent Developer
almost 5 years ago from Edward Loveall, Independent Developer
This is great, but it doesn't take into account that often you'll need to put the tool-tip in different positions depending on it's position relative to other content or the window edge, and that input's used that way are likely semantically incorrect.
Cool!
I gave a workshop about this a few months ago.. based on this great article from A List Apart. Using basically :target and radio/checkboxes you can make even more stuff like drawers, sliders, tabs, material fab-menus and modals.
You can check out the code on gitHub if you want. but let me warn you that the code was made at the workshop, code along style, and lacks proper comments.
The "checked" trick is brilliant! Never thought of that
Great! Very clever, too. Will come in handy! Thank you.
Designer News
Where the design community meets.
Designer News is a large, global community of people working or interested in design and technology.
Have feedback?
Login to Comment
You'll need to log in before you can leave a comment.
LoginRegister Today
New accounts can leave comments immediately, and gain full permissions after one week.
Register now