We've got used to writing JavaScript for common UI element functionality like accordions, tooltips, text truncation, etc. But as HTML and CSS got new features and older browsers were no longer supported, we've been able to use less and less JavaScript for creating UI elements and focusing it more on logic part of the code (validation, data processing, etc.).
Some solutions do still feel hacky and not flexible, but these are useful on smaller projects and if those are single-instance elements. Why write JavaScript function (or use jQuery if you feel nostalgic) for a single accordion on your website? That was my thought process when adding an accordion on the footer for mobile-only on my personal website.
Here are some examples of elements you can create with no JavaScript.
Responsive text truncation
CSS text truncation is very simple to implement and is very performant since we are not editing the HTML content of the text, only its render. While single-line text truncation is well supported in older browsers, multi-line text truncation is only supported on newer browsers.
Star rating input
Star ratings are a must-have element of most review forms and functionalities. There are many ways of implementing this with CSS: using a background image, JavaScript, icons, etc. The most accessible way of implementing this is with icons and native radio inputs.
The downside of this implementation is that the input HTML radio inputs are in the reverse order (from 5 to 1 rating value) because we need to select all the starts up to and including the checked input which is not possible to select with CSS. That's why we reverse the order and select inputs from the checked input to the first input.
This implementation is very flexible and can be easily customized.
Tooltip / dropdown menu
This is a very flexible element because it's CSS logic can be used for both tooltips and dropdown menus, because they work in a similar way and both support the hover and click (touch) functionalities.
Something that can be considered an issue with this implementation is that due to it's focus
styles, the tooltip (dropdown) will remain open on click until the user clicks away from the element (element uses focus).
Modal
This a bit of a hacky implementation that relies entirely on the query string of the URL. Id in the URL needs to match the modal element that we need to open.
Floating label input
I've covered floating label inputs implementation in a separate article since this implementation is a bit more complex.
Let's create a floating label input with HTML and CSS only
Adrian Bece ・ Nov 6 '19
Toggle / Accordion
Recently, HTML got its native accordion (toggle) element with <details>
and <summary>
elements, but the downside of using those elements is that they don't have many styling options, so developers still continue to use their own implementation. Luckily, with checkbox or radio input logic we can create toggleable elements and accordions without relying on JavaScript.
The downside of using this implementation is that it relies on input
HTML element and it's logic resulting in extra HTML code needed, but also on the flip side, this results in a very accessible element.
Conclusion
As you can see, these CSS-only implementations rely on CSS selector logic like :focus
and :placeholder-shown
to replace JavaScript logic. Some of these CSS solutions can be considered hacky, but they are performant, flexible and don't rely on JavaScript.
I've used some of those CSS solutions in my projects, so I can avoid adding any extra JavaScript or avoid using JavaScript entirely for visual presentation.
Of course, there are many more CSS-only solutions out there, but I've found these ones most interesting. If you are using any other solutions, please do let me know in the comments.
These articles are fueled by coffee. So if you enjoy my work and found it useful, consider buying me a coffee! I would really appreciate it.
Thank you for taking the time to read this post. If you've found this useful, please give it a ❤️ or 🦄, share and comment.
Latest comments (85)
store-arab.com
store-arab.com/2021/09/Gradient-Pr...
store-arab.com/2020/11/egybest-ad-...
store-arab.com/2020/09/duolingo-pl...
store-arab.com/2021/02/dream-leagu...
store-arab.com/2020/09/vivavideo-p...
store-arab.com/2021/03/camscanner-...
store-arab.com/2020/09/powerdirect...
store-arab.com/2020/09/2022-minecr...
store-arab.com/2020/09/tiktok-prem...
store-arab.com/2021/12/YTV-Player-...
store-arab.com/2020/09/pixaloop-pr...
store-arab.com/2021/01/snaptube-vi...
store-arab.com/2020/08/zarchiver-P...
store-arab.com/2021/04/flipaclip-p...
store-arab.com/2020/11/airbrush-pr...
store-arab.com/2022/03/Shahid-vip....
store-arab.com/2020/08/black-tv-Pr...
store-arab.com/2021/03/vivacut-pro...
store-arab.com/2021/03/remini-pro-...
store-arab.com/2020/08/lucky-patch...
store-arab.com/2020/08/ufo-vpn-pre...
store-arab.com/2020/09/kinemaster-...
store-arab.com/2020/10/vsco-pro-Mo...
store-arab.com/2021/02/picsart-gol...
store-arab.com/2020/10/faceapp-pro...
store-arab.com/2020/08/subway-surf...
store-arab.com/2020/09/whatsapp-20...
store-arab.com/2020/11/reface-pro....
store-arab.com/2021/08/google-play...
store-arab.com/2021/01/truecaller-...
store-arab.com/2020/11/filmorago-p...
larbi-tech.com
apkrio.com
store-arab.com/2021/11/2022-pubg-m...
store-arab.com/2021/08/Cupcut-Pro....
store-arab.com/2021/11/tempo-pro-m...
store-arab.com/2021/04/alight-moti...
store-arab.com/2020/11/reface-pro...."
store-arab.com/2021/03/adobe-light...
store-arab.com/2021/03/2021-spotif...
store-arab.com/2020/09/instagram-m...
store-arab.com/2020/08/yacinetv-Ad...
store-arab.com/2020/09/deezer-Prem...
store-arab.com/2021/04/inshot-pro-...
VidMate is a versatile video and music downloading app for Android devices, offering users a convenient way to download and enjoy their favorite content from various platforms. فيد ميت
picsart مهكر يعتبر واحد من افضل تطبيقات تعديل وتحرير الصور ان لم يكن افضلهم على الاطلاق. بيكس ارت مهكر 2022 او Picsart مهكرة يحظى بشعبية كبيرة في جميع أنحاء العالم والمستخدم بصورة شائعة بين المؤثرين، وصناع المحتوى والمبتدئين على حد سواء.
ذلك عبر مجموعة كبيرة من الادوات والفلاتر والخطوط والملصقات، والتي قلما تتوفر في تطبيق آخر مشابه. كما يعتبر Picsart مهكر بديلا قويا لبرامج تعديل الصور الشهيرة، مثل: أدوبي فوتو شوب، والذي يحتاج الى موارد قوية لتشغيله. فهو يحتوي على جميع المميزات، بالإضافة لسهولة الاستخدام على عكس فوتوشوب، والذي يحتاج لخبرة كبيرة للوصول لنتائج احترافية.
أقرأ أيضاً:-
سناب تيوب 2024
ياسين تيفي 2024
الاسطورة تي في 2024
واتساب الذهبي
واتساب الازرق
واتساب الاحمر
GBWhatsApp
واتساب بلاك الذهبي
GOWhatsApp
صب واي سيرفرس Subway Surfers مهكرة
شركات مضمونة للعمل من المنزل
كلاش رويال Clash Royale مهكرة
كين ماستر Kinemaster مهكر
Subway Surfers مهكرة
دريم ليج مهكرة Dream League Soccer
سناب تيوب Snaptube
Hearthstone مهكرة
Brutal Age مهكرة
Rebel Racing مهكرة
باك مان PAC-MAN مهكرة
بيس Pes مهكرة
Armed Heist مهكرة
Join Clash 3D مهكرة
Epic Heroes War مهكرة
Drop Stack Ball مهكرة
Monster Dash مهكرة
حرب الزومبي State of Survival مهكرة
كلاش اوف كلانس مهكرة Clash of Clans
سكور هيرو مهكرة Score Hero
Skater Boy مهكرة
Stormbound مهكرة
انشوت InShot مهكر
ريميني Remini مهكر
Shooting King مهكرة
زومبي كاتشر Zombie Catchers مهكرة
جراند ثفت أوتو Grand Theft Auto مهكرة
ماينكرافت بوكيت إيديشين مهكرة
Dead target مهكرة
Beach Buggy Racing مهكرة
كاندي كراش Candy Crush Saga مهكرة
Zombie Castaways مهكرة
لودو كينغ Ludo King مهكرة
Modern Strike Online مهكرة
Picsart مهكر بدون علامة مائية
كاستل كلاش Castle Clash مهكرة
VPN Shield في بي إن شيلد
Stickman Legends مهكرة
كراش بنديكوت Crash Bandicoot مهكرة
Pixomatic مهكر
لوردس موبايل Lords Mobile مهكرة
Creative Destruction مهكرة
Chief Almighty مهكرة
واي فاي ماب Uptodown
PDF Creator Uptodown
Show box Uptodown
لاين كاميرا Uptodown
سكايب Uptodown
تيوب ميت Uptodown
Urban Crime Uptodown
Uptodown
بوكيمون موبايل Uptodown
واتساب الذهبي uptodown
واتساب الاحمر uptodown
واتساب الازرق uptodown
واتساب عمر uptodown
واتساب جي بي uptodown
تطبيق picsart مهكر من ميديا فاير يتيح للمستخدم التحكم الكامل في جميع انواع الصور، سواء بالتعديل، أو تغيير الخلفيات، أو ازالة اجزاء من الصور. بالإضافة الى امكانية الكتابة عبر إضافة عدد ضخم من الخطوط الاحترافية، مع امكانية التحكم في مكان الخط واتجاه، بالإضافة الى لون وحجم ونوع الخط.
يوجد عدد كبير من الفلاتر الرائعة والكفيلة بتحويل الصورة بمعدل 360 درجة، لتصبح أشبه باللوحات الفنية، او بالصور المنتجة بواسطة فرق التصميم الاحترافية. التحكم الكامل بالألوان بدرجة السطوع والتباين والحدة للصورة ككل، أو أجزاء معينة من الصور. ميزة اضافية، وهي امكانية الكتابة يدويا على الصور باستخدام القلم كعمل توقيع، او كتابة كلمات على الصور يدويا.
بن جدو برو
yacine tv مهكر
yacine tv
apk.aymentech.pro
Plex premium مهكر
Pluto tv مهكر
Hbo max مهكر
Kinemaster مهكر
كين ماستر مهكر
Super vpn مهكر
Remini مهكر
turbo vpn مهكر
state of survival مهكرة
incognito browser مهكر
If you have a site and want to change its appearance, doing so in a stylesheet makes sense. Why would it make sense to go through the content, which is usually going to be held in a database by a CMS, to change the structure of things? There's no reason I can think of to marry style and content.
تطبيقات مهكرة
ألعاب مهكرة
netflix مهكر
ufo vpn مهكر
lensa مهكر
picsart مهكر
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
Glizztech
https://www.google.com/url?hl=ar&q=https://www.store-arab.com&source=gmail&ust=1678203304017000&usg=AOvVaw14VAEq93E6N68nwRijnyux
Taleek مهكر
ome tv مهكر
smule مهكر
Why do you think that it's a downside?
Yacine TV APK
KineMaster Pro APK
Gta 5 APK
Battlefield Mobile APK
Stumble Guys MOD APK
TikTok MOD APK
pubg mobile apk
Drive Zone Online APK
eFootball 2023
new state mobile
total football apk
total football apk
CRSED: Cuisine Royale APK
Alight Motion Pro APK
snaptube premium apk
FMWhatsApp APK
capcut pro apk
Wattpad Premium APK
Fortnite APK
PUBG MOBILE LITE
Minecraft APK MOD
netflix premium apk
hbo max apk premium
Remini Pro APK
Instabridge Premium APK
Amazon Music Premium APK
Adobe Express Premium APK
genshin impact mod apk
Telegram MOD APK
VSCO Premium APK
The Division Resurgence APK
Photoshop Express Premium APK
Spotify Premium APK
YouTube Vanced APK
ES File Explorer Pro
podvine.com/user/Apkjugar1
apkjugar.wufoo.com/forms/zfuuvau0y...
mifare.net/support/forum/users/ton...
vukajlija.com/recnik/autori/332301
worldvectorlogo.com/profile/apkjug...
forum.thd.vg/members/apkjugar.20330/
moviebreak.de/users/APKJUGAR
159.89.53.91/APKJUGAR
fnote.net/notes/53031e
fnote.net/notes/2f9c0f
fnote.net/notes/01b13a
fnote.net/notes/71fb78
fnote.net/notes/49790c
wishlistr.com/profile/
findaspring.com/members/apkjugar/
mochub.com/user/54352
joyrulez.com/apkjugar
listium.com/@apkjugar
demo.themex.co/makery/profile/apkj...
test.sozapag.ru/forum/user/177859/
git.guildofwriters.org/APKJUGAR
comunitat.canodrom.barcelona/profi...
magicyuv.com/community/profile/apk...
list.ly/list/7t2i-tus-aplicaciones...
bitchute.com/channel/vo6TSYld23iS/
tarry-apogee-9a3.notion.site/APKJU...
csfd.cz/uzivatel/891948-tony258/o-...
readthedocs.org/projects/apkjugar/
vecteezy.com/members/apkjugar258963
apkjugar.substack.com/p/yacine-tv-apk
alchetron.com/Tron/eFootball-2023-...
alchetron.com/Tron/CASE-2%3A-Anima...
alchetron.com/Tron/GTA-6-APK-mobil...
alchetron.com/Tron/Spotify-Lite-Pr...
alchetron.com/Tron/Truck-Simulator...
alchetron.com/Tron/Telegram-MOD-AP...
alchetron.com/Tron/YouTube-ReVance...
alchetron.com/Tron/PUBG-MOBILE-APK...
alchetron.com/Tron/MT-Manager-Vip-...
alchetron.com/Tron/VivaCut-Pro-APK...
alchetron.com/Tron/Snaptube-Premiu...
alchetron.com/Tron/NEW-STATE-Mobil...
alchetron.com/Tron/Gta-4-APK-desca...
alchetron.com/Tron/PicsArt-Premium...
alchetron.com/Tron/Alight-Motion-P...
alchetron.com/Tron/Racing-Master-A...
alchetron.com/Tron/Call-of-Duty%3A...
alchetron.com/Tron/Gta-5-APK-desca...
alchetron.com/Tron/TikTok-Premium-...
alchetron.com/Tron/yacine-tv-apk-D...
alchetron.com/Tron/yacine-tv-apk-D...
participa.gencat.cat/profiles/apkj...
ref.gamer.com.tw/redir.php?url=htt...
investorshub.advfn.com/boards/prof...
letterboxd.com/apkjugar/
gta5-mods.com/users/apkjugar
kiva.org/lender/apkjugar
users.playground.ru/3608075/
redbubble.com/people/apkjugar
sketchfab.com/apkjugar
player.fm/series/series-3422984
speakerdeck.com/apkjugar
sitereport.netcraft.com/?url=https...
500px.com/p/apkjugar8
apkjugar.splashthat.com/
taz.de/!ku110660/
giantbomb.com/profile/apkjugar23d/
apkjugar.jimdosite.com/
forum.index.hu/User/UserDescriptio...
largus.fr/forum-auto/profile.php?i...
intensedebate.com/people/apkjugar
Gta 4 APK
Gta 5 APK
TikTok Premium APK
Snaptube Premium APK
Remini Pro APK
Cool Adrian, Nice😍😍 to see that we can make amazing things using only css. i am sure gonna use this Css only tricks in my projects.
yacine tv apk
VSCO Premium APK
PicsArt Premium APK
WPS Office Premium APK
Strava Premium APK
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
yacine tv
تحميل واتس اب الذهبى
Atlantis Odyssey
djezzy app
GBWhatsapp v9.41
نتائج التاسع
{يميني
Some comments may only be visible to logged-in visitors. Sign in to view all comments.