Junior Dev (@juniordesw) header
Junior Dev (@juniordesw) profile picture

It’s not a bug; it’s an undocumented feature!

Doha, Qatar
Joined August 2023
Photo by Junior Dev (@juniordesw)Photo by Junior Dev (@juniordesw)
Stop creating new folders like this
6
242
5
1,038
63,900
Understand border radius values with this overview 🚀
7
61
2
316
11,390
Flexbox Cheatsheet. [Bookmark for later 🔖]
36
116
4
634
40,583
Junior Dev retweeted
Do yourself a favor! – Learn JavaScript – Use OpenAI API – Build an AI based app – Talk about it on X You won't believe how much money you'll make.
64
319
13
2,868
213,287
Junior Dev retweeted
using a <div> as a <button>
173
2,057
236
24,706
3,415,184
235
3,391
495
43,654
3,637,972
Create this awesome UI inspired by @janm_uiux using HTML, CSS and JavaScript 🚀 Code in the comments 👨‍💻
20
113
1
713
39,054
Create simple animated navigation using just HTML and CSS 🚀 Code in the comments 👨‍💻
18
71
1
435
28,798
Do you think document.querySelector is too verbose? Here's a potential solution from @firt
5
18
1
189
22,271
💡React tip: Use a custom hook to handle array states in your components
16
140
2
875
68,547
Junior Dev retweeted
JSX vs. HTML in React. Explained:
3
12
78
7,089
UI/UX Designers, here are my favorite places on the internet for design inspiration in 2024: Website → godly.website Portfolio → prettyfolio.com Bento Grid → bentogrids.com Image Gallery → ogimage.gallery Mobile & Web App → mobbin.com
18
206
6
963
63,366
Extra CSS Trick! 🚀 Use scroll-padding-inline with some calc on the track to make the indicator click JS free 🤙 (See video 🎬) ul { scroll-behavior: smooth; scroll-padding-inline: calc( 50vw - (var(--card-width) * 0.5 ); } You could color those indicators as requested by @AbelardoIT .indicator::after { background: hsl(var(--hue) 90% 70%); } @​keyframes show { 50% { opacity: 1; }} Combined with the same animation properties from the original demo ⭐️ Rad! 😎
CSS Tip! 🚥 You can create these trending expanding scroll indicators with scroll-driven animations and flex 🤙 .indicator { animation: grow; animation-range: contain calc(50% - var(--size)...; animation-timeline: var(--card); } @​keyframes grow { 50% { flex: 3; }} What's the trick? Put the indicators in a container using flex layout and set a width larger than the number of indicators 😉 .indicators { aspect-ratio: 7 / 1; display: flex; } Importantly, set no gap 🤏 To mimic the gap set a transparent border on each indicator and set the background using padding-box .indicator { background: linear-gradient(#​fff, #​fff) padding-box; border-radius: 50px; border: 4px solid transparent; } Now for the animation. You want to create a view-timeline for each card that moves across 🤙 li:nth-of-type(1) { view-timeline: --one inline; } li:nth-of-type(2) { view-timeline: --two inline; } Make sure they use the inline axis too! The trick is hoisting these view-timeline so the indicators can use them with timeline-scope 👀 .track { timeline-scope: --one, --two, ...; } All that's left is for you to create the animation piece using some calc with the card size ⚡️ .indicator { --size: calc(var(--card-width) * 0.9); animation: grow both linear; animation-range: contain calc(50% - var(--size)) contain calc(50% + var(--size)); } .indicator:nth-of-type(1) { animation-timeline: --one; } .indicator:nth-of-type(2) { animation-timeline: --two; } @​keyframes grow { 50% { flex: 3; }} And there you have it, responsive scroll indicators using CSS scroll-driven animations 😎 Sprinkle a little JavaScript to make them clickable and scroll the the right card ✨ const shift = (event) => { if (event​.target.tagName === "BUTTON") { const index = [...event.target.parentNode.children].indexOf(event​.target); const item = document.querySelector(`li:nth-of-type(${index + 1})`); item.scrollIntoView({ behavior: "smooth", inline: "center" }); } }; As always, any questions or suggestions, let me know. I've put a JavaScript fallback in to use GSAP in browsers that don't have scroll-driven animations 🫶 @CodePen link below! 👇
6
147
4
1,061
95,331
JavaScript tip: You can use the `document.designMode` property to make the whole website editable:
17
58
5
314
27,108
Essential CSS Breakpoints for Web Developers: ➡️ Mobile: Up to 480px ➡️ Extra small devices: 481px to 767px ➡️ Small tablets: 768px to 991px ➡️ Large tablets/laptops: 992px to 1199px ➡️ Desktops: 1200px to 1919px ➡️ Extra large screens: 1920px and up
58
295
8
1,255
76,298
teapaw.org/i/spaces/1ZkKzjgbgqwKv Developers say Hi 🙌 📷 ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄| | Developers Let's #Connect!| |_____________| \ (•◡•) / \ / —— | | |_ |_ Let's connect and grow together📷
100
5
3
158
21,662
🎆 Backend Development 2024: Languages: 🔧 Java 🔧 Python 🔧 Go 🔧 Node.js (JavaScript) 🔧 Ruby 🔧 C# 🔧 PHP 🔧 Rust 🔧 Elixir Web Frameworks: 🌐 Express (Node.js) 🌐 Django (Python) 🌐 Flask (Python) 🌐 FastAPI (Python) 🌐 Spring Boot (Java) 🌐 ASP .NET (C#) 🌐 Laravel (PHP) 🌐 Ruby on Rails (Ruby) 🌐 Gin (Go) Testing Frameworks: 🧪 JUnit (Java) 🧪 PyTest (Python) 🧪 Testing (Go) 🧪 Mocha & Jest (JavaScript) 🧪 RSpec (Ruby) 🧪 NUnit & xUnit (C#) 🧪 PHPUnit (PHP) 🧪 Cargo Test (Rust) 🧪 ExUnit (Elixir) Databases: 💾 PostgreSQL 💾 MySQL 💾 MongoDB 💾 Redis 💾 Oracle 💾 MS SQL Server 💾 Cassandra 💾 DynamoDB 💾 CockroachDB 💾 ElasticSearch ORMs: 🗃️ Hibernate (Java) 🗃️ SQLAlchemy (Python) 🗃️ Entity Framework (.NET) 🗃️ Sequelize (Node.js) 🗃️ GORM (Go) Microservices: 📦 Docker 📦 Kubernetes 📦 Istio 📦 Micro (Go) Cloud Providers: ☁️ AWS ☁️ Azure ☁️ GCP ☁️ IBM Cloud API Design: 🔌 REST 🔌 GraphQL 🔌 gRPC 🔌 SOAP DevOps Tools: 🛠️ Jenkins 🛠️ GitHub Actions 🛠️ GitLab CI/CD 🛠️ Ansible 🛠️ Terraform Monitoring & Logging: 📊 Prometheus 📊 Grafana 📊 ELK Stack 📊 Datadog What else? 👇
18
197
3
644
52,256