Álvaro Trigo  🐦🔥 Profile Banner
Álvaro Trigo  🐦🔥 Profile
Álvaro Trigo 🐦🔥

@IMAC2

Followers
20,301
Following
329
Media
778
Statuses
12,372

Tweeting about Web Development tips, tricks and things I learn. I quit my job to work on fullPage.js .

Cambridge, UK
Joined June 2009
Don't wanna be here? Send us removal request.
Explore trending content on Musk Viewer
Pinned Tweet
@IMAC2
Álvaro Trigo 🐦🔥
4 years
Years ago I made my first JavaScript plugin. With no experience and as an experiment to improve my skills. 3 years later I earned enough with it to quit my job. A few days ago the library got the record of 21K npm downloads in one week. Don't wait to be a mater, start now!
Tweet media one
84
226
2K
@IMAC2
Álvaro Trigo 🐦🔥
4 years
Developers in 2021...
Tweet media one
168
2K
27K
@IMAC2
Álvaro Trigo 🐦🔥
5 years
Wow! I had no idea you could use the property "document.designMode" to make your whole document editable! ✍️ Great to test different texts!! ✨
100
2K
6K
@IMAC2
Álvaro Trigo 🐦🔥
3 years
HTML is all-powerful! 💪💪 Plain HTML autocomplete input. Compatible with ALL modern browsers!
51
936
5K
@IMAC2
Álvaro Trigo 🐦🔥
4 years
There are CSS properties I never heard of before! Hello `caret-color` 👋
Tweet media one
53
641
4K
@IMAC2
Álvaro Trigo 🐦🔥
4 years
😱 OK, I have no idea <meter> was a thing!! Not a single line of CSS / JavaScript! Pure HTML! 💪
Tweet media one
81
667
3K
@IMAC2
Álvaro Trigo 🐦🔥
4 years
Autofill inputs using security codes sent by SMS! 😍 No JavaScript! Plane HTML! Working on iOS!
Tweet media one
44
794
3K
@IMAC2
Álvaro Trigo 🐦🔥
3 years
1 line of CSS to make your problems disappear 👇
Tweet media one
81
436
3K
@IMAC2
Álvaro Trigo 🐦🔥
4 years
Javascript tip: use guard clauses: - Prevents nesting hell - Improves readability - Adds "natural flow"
Tweet media one
59
412
2K
@IMAC2
Álvaro Trigo 🐦🔥
4 years
Today I discovered "inputmode"! 🥳 Now we can "hint" the browser what virtual keyboard we want to show on mobile devices without forcing the browser to change the visuals of the input. (unlike with input="number" for example)
Tweet media one
27
641
2K
@IMAC2
Álvaro Trigo 🐦🔥
3 years
Debug JavaScript like a pro! Get to know the 22 methods. Explanations inside 🧵👇
Tweet media one
34
566
2K
@IMAC2
Álvaro Trigo 🐦🔥
3 years
Who started their web development path this way?
Tweet media one
394
172
2K
@IMAC2
Álvaro Trigo 🐦🔥
5 years
Wooo!! 😱😱 HTML is getting pretty interesting!! Compatible in all browsers except IE & Edge! Getting there!
46
530
2K
@IMAC2
Álvaro Trigo 🐦🔥
2 years
I couldn't find a CSS generator to create gradient shadows. So, I created one! 👇
Tweet media one
Tweet media two
47
311
2K
@IMAC2
Álvaro Trigo 🐦🔥
3 years
The HTML links are much more powerful nowadays than years ago! 👇
Tweet media one
28
416
2K
@IMAC2
Álvaro Trigo 🐦🔥
4 years
Revealing the dark side of open source projects 🧵👇
28
373
2K
@IMAC2
Álvaro Trigo 🐦🔥
4 years
Create beautiful texts now with CSS `background-clip property` 👇 Choose a background and apply it your text. Working on all modern browsers!
Tweet media one
25
290
2K
@IMAC2
Álvaro Trigo 🐦🔥
4 years
Uh wow 😲, I had no idea we could use: > window.matchMedia In order to trigger JavaScript events based on the viewport size! Sweeeeeet! 😊
Tweet media one
29
397
1K
@IMAC2
Álvaro Trigo 🐦🔥
3 years
Use this clean way of assigning default values in JavaScript 👇
Tweet media one
26
212
1K
@IMAC2
Álvaro Trigo 🐦🔥
3 years
Display different images in dark mode using HTML media queries! 😱😱
Tweet media one
6
260
1K
@IMAC2
Álvaro Trigo 🐦🔥
4 years
Every day I learn something new!! 🙃
24
303
1K
@IMAC2
Álvaro Trigo 🐦🔥
5 years
OMG!!!!🤯🤯 I've been using Chrome for EVER and I had idea about the "Create Live Expression" option! ✨ Great to stop flooding the console with 1000000 console.logs!
12
393
1K
@IMAC2
Álvaro Trigo 🐦🔥
3 years
Don't understimate the HTML <ol> lists! 💪
10
202
1K
@IMAC2
Álvaro Trigo 🐦🔥
3 years
Make your JavaScript code more readable by using: - map - filter - reduce
Tweet media one
41
209
1K
@IMAC2
Álvaro Trigo 🐦🔥
3 years
No need for CSS to hide stuff! HTML replacement for "display:none" !
Tweet media one
41
172
1K
@IMAC2
Álvaro Trigo 🐦🔥
4 years
JavaScript refactoring tip! 👇 Replacing switch statements for object literals. - They admit functions - We can pass them as object params - We can stringily them - Easier to debug - ...
Tweet media one
39
263
1K
@IMAC2
Álvaro Trigo 🐦🔥
4 years
Just a quick JavaScript reminder 👇 - Consider it when comparing a variable multiple times. - Reduce IF conditions. - Easier to edit. - More flexible (dynamic arrays, map, reduce...) - Easier to debug.
Tweet media one
28
211
1K
@IMAC2
Álvaro Trigo 🐦🔥
4 years
- I don't know CSS grid. I never used SaaS. - I don't know React. - I don't know Webpack or Grunt. I keep on learning every day. You don't need to know everything to provide value and make interesting things. ✨
34
118
1K
@IMAC2
Álvaro Trigo 🐦🔥
4 years
Want to force the download of a file? Now it's easy with just HTML ! 💪
25
229
1K
@IMAC2
Álvaro Trigo 🐦🔥
3 years
😱 We can actually trigger the device's camera to capture an image directly from it! A simple HTML input is enough: 👇 <input type="file" accept="image/*" capture="user">
17
205
1K
@IMAC2
Álvaro Trigo 🐦🔥
4 years
Need to toggle CSS classes often? 🚫 Don't do it manually on the DOM. Use Chrome or Firefox Dev tools! 🥳🥳
22
224
1K
@IMAC2
Álvaro Trigo 🐦🔥
8 years
Just created a codepen with an elastic effect using fullPage.js #javascript
58
171
1K
@IMAC2
Álvaro Trigo 🐦🔥
4 years
I've coded HUNDREDS OF THOUSANDS of lines of JavaScript. I've made web apps, mobile apps, JavaScript libraries, games, Chrome extensions, plugins for jQuery and things you wouldn't even believe... 😎 And I can tell you one thing: "console.log" is totally useful.
39
110
1K
@IMAC2
Álvaro Trigo 🐦🔥
4 years
Whaaaat? Awesome stuff !! A single CSS property and watch the magic happen! ✨ Smooth scroll made easy!
23
200
1K
@IMAC2
Álvaro Trigo 🐦🔥
4 years
This is awesome! 😱 I didn't know about the CSS `round` or `space` property for backgrounds! Ideal if you want to avoid cropping the image!
12
206
993
@IMAC2
Álvaro Trigo 🐦🔥
3 years
Bye-bye Photoshop! Hello CSS! 👋
Tweet media one
22
145
975
@IMAC2
Álvaro Trigo 🐦🔥
4 years
The other day I discovered the HTML <output> tag! 🤯 Did you know about it? 👇
Tweet media one
17
144
926
@IMAC2
Álvaro Trigo 🐦🔥
4 years
I just discovered the "mark" tag 🥳 HTML to the rescue!
Tweet media one
29
98
937
@IMAC2
Álvaro Trigo 🐦🔥
3 years
Don't obsess with frameworks / the latest trends. Focus on providing value. - remoteok .io Makes 65K/month with 1 index.php file - photopea .com Makes 1M/year using vanilla JavaScript to make a Photoshop "clone" - hostifi .com Made $500K with 2 files and few thousand lines 👇
17
172
929
@IMAC2
Álvaro Trigo 🐦🔥
4 years
TIL about another HTML tag 🙃 <abbr>
Tweet media one
11
121
928
@IMAC2
Álvaro Trigo 🐦🔥
4 years
7 years ago I published my first open source project on Github. 10 things I learned since then and you can learn too 🧵👇
12
152
899
@IMAC2
Álvaro Trigo 🐦🔥
3 years
Bringing your CSS shadows to the next level! Just separate them by commas and enjoy! 👇
Tweet media one
18
119
865
@IMAC2
Álvaro Trigo 🐦🔥
3 years
Say hi 👋 to the semantic HTML tag for deleted text!
Tweet media one
22
94
834
@IMAC2
Álvaro Trigo 🐦🔥
4 years
5 front-end debug techniques that will save you hours debugging your pages: 🧵👇
15
195
842
@IMAC2
Álvaro Trigo 🐦🔥
3 years
I'm not telling you to stop learning a JS framework. I'm telling you to at least learn HTML and CSS before jumping to it.
48
69
814
@IMAC2
Álvaro Trigo 🐦🔥
4 years
Ok guys, don't shout! HTML power!💪
Tweet media one
20
118
812
@IMAC2
Álvaro Trigo 🐦🔥
4 years
Whaaaaaat? 😱😱 I had no idea we could do this with videos! Working in Chrome and Safari at the moment!
21
168
780
@IMAC2
Álvaro Trigo 🐦🔥
5 years
Yeeey! 👏👏👏 No more `display:none;` to debug! Toggle visibility of any DOM element by pressing "H"! Working in Chrome, Firefox and Safari!! 👍
10
257
772
@IMAC2
Álvaro Trigo 🐦🔥
4 years
4 years ago I created this split-screen plugin for JavaScript but it never saw the light. 🙃 Would you be interested on it?
65
76
758
@IMAC2
Álvaro Trigo 🐦🔥
4 years
My top resources for web developing: - codepen.​io (html, css, js) - regex101.​com (regular expressions) - codesandbox.​io (vue, react, angular...) - unsplash.​com (photos) - fontawesome.​com (font icons) - fontello.​com (pick specific icons) - fonts.​google.​com (fonts) Yours?
32
149
750
@IMAC2
Álvaro Trigo 🐦🔥
4 years
New style to add on your reset stylesheet! You'll never forget another ALT attribute on any image! 😎 Just a single line of CSS! 👇
Tweet media one
23
150
742
@IMAC2
Álvaro Trigo 🐦🔥
3 years
- I don't know CSS grid. - I never used Tailwind. - I don't know Webpack. - I haven't tried Gastby. I keep on learning every day. You don't need to know everything to provide value and make interesting things. ✨
23
69
710
@IMAC2
Álvaro Trigo 🐦🔥
4 years
<wbr>, nice to meet you! 👋 Word Break Separator. Tell me me you have ever used HTML tag <wbr> and I'll declare you my hero for ever!
26
125
716
@IMAC2
Álvaro Trigo 🐦🔥
4 years
There are two kinds of developers: - The ones who like to make things sound as complicated as possible so they can look smarter than the rest and feel better with themselves. - The ones who try to simplify things to make them as easy as possible for others.
19
118
695
@IMAC2
Álvaro Trigo 🐦🔥
3 years
You don't have to be a master to build useful stuff. Check out the landing pages of big techs. - Apple - Microsoft - Uber Eats - Deliveroo... They are SO simple that any person with 2 to 3 weeks of experience in HTML and CSS can replicate most of them.
34
90
640
@IMAC2
Álvaro Trigo 🐦🔥
3 years
Fun fact: you need to use HTML and CSS to build websites.
38
45
601
@IMAC2
Álvaro Trigo 🐦🔥
4 years
Need to detect user speed to base your page on it? No problem! JavaScript has you covered! 👇
Tweet media one
11
113
618
@IMAC2
Álvaro Trigo 🐦🔥
5 years
Have you heard about "i18n"? 😱 Ever wondered where does it come from? I did!
Tweet media one
26
141
605
@IMAC2
Álvaro Trigo 🐦🔥
4 years
Displaying an empty message with CSS 😍 Saving some JS / Back-end conditions and keeping code a bit more simple :)
Tweet media one
18
91
584
@IMAC2
Álvaro Trigo 🐦🔥
4 years
Ever had to deal with currencies on JavaScript?👇 Heard about the ES6 way of doing it with`Intl.NumberFormat`? Cool uh? 🙃
Tweet media one
13
119
586
@IMAC2
Álvaro Trigo 🐦🔥
3 years
Say hello to <ins> 👋 The semantic HTML tag for added text!
Tweet media one
10
85
579
@IMAC2
Álvaro Trigo 🐦🔥
4 years
This is nice!! 😍 CSS media queries based on pointer accuracy! A big screen doesn't always mean they are not using at touch screen! (low accuracy pointer)
Tweet media one
9
96
531
@IMAC2
Álvaro Trigo 🐦🔥
3 years
😱 I just discovered what happens when you hit "." in any GitHub repo!! Am I too late for the party?
29
85
536
@IMAC2
Álvaro Trigo 🐦🔥
3 years
HTML power to the rescue! 💪 Use lazy loading by just adding the attribute loading="lazy". The distance threshold varies depending on: - Image type - Effective connection type - Whether Lite mode is enabled on Chrome for Android
14
109
520
@IMAC2
Álvaro Trigo 🐦🔥
4 years
Terms cheatsheet for web devs: CTA→ Call To Action SPA→ Single Page App PWA→ Progressive Web Application AMP→ Accelerated Mobile Pages CMS→ Content Management System SEO→ Search Engine Optimisation UX→ User Experience UI→ User Interface GDPR→U don't wanna know🙃
9
119
520
@IMAC2
Álvaro Trigo 🐦🔥
4 years
Many arguments on a JavaScript function? Use a single object instead:👇 ◾️ Improves readability. ◾️ Order won't matter (params & arguments). ◾️Allows to easily pass optional parameters.
Tweet media one
19
97
516
@IMAC2
Álvaro Trigo 🐦🔥
3 years
Imagine you start developing a side project in your free time. Imagine you publish it on GitHub and people show interest. Imagine that, suddenly, it becomes your full-time job. Now, stop imagining. This is what is happening nowadays! 💪
11
56
487
@IMAC2
Álvaro Trigo 🐦🔥
4 years
Software I use on my every day as a web developer: - Chrome + Chrome Dev Tools - Visual Studio Code - SourceTree (Git GUI) - Beyond Compare (compare code) - Photoshop - Slack - GitHub - Todoist - Spotify What about you? Any recommendation? 🙃 (I use Mac)
75
45
478
@IMAC2
Álvaro Trigo 🐦🔥
3 years
Developers abuse React in the same way they abused jQuery. History repeats itself. Using React for everything is just wrong.
27
51
454
@IMAC2
Álvaro Trigo 🐦🔥
3 years
I created a Chrome extension in JavaScript to help me find a house in the leading real state platform in Spain. Now I can: - Rate from 0 to 5 - Get the distance & time to the city center by subway - Mark as "contacted" - Sort by rating, price, contacted - Mark as "discarded"
19
59
468
@IMAC2
Álvaro Trigo 🐦🔥
4 years
📈 My top tips to improve websites loading performance: - Use async to load non blocking JS - Defer all you can - Reduce HTTP requests - Inline critical CSS/JS - Use DNS prefetch - Use SSL + HTTP2 - Use a CDN
9
76
446
@IMAC2
Álvaro Trigo 🐦🔥
4 years
Coding is just part of what web developers do. Mastering these and you'll become a much better developer 👇 ▪️ Browser dev tools ▪️ Code editor ▪️ Deployment workflows ▪️ NPM ▪️ GIT ▪️ Module packers ▪️ Server management ▪️ Soft Skills What would you add?
41
89
441
@IMAC2
Álvaro Trigo 🐦🔥
4 years
Quick JavaScript tip: > Make impossible states impossible Helps preventing bugs and saves you some variables on the way too! 🙃
Tweet media one
13
56
433
@IMAC2
Álvaro Trigo 🐦🔥
4 years
😱 And now I learn about this!! JavaScript making it easier for humans to read long numbers!
Tweet media one
17
80
411
@IMAC2
Álvaro Trigo 🐦🔥
4 years
I've created a new "drop" effect! 🎉🥳
16
29
406
@IMAC2
Álvaro Trigo 🐦🔥
4 years
Refactoring JavaScript tip: ✨ Write self explanatory code and enjoy:👇 - Easy understanding - More flexibility (reuse, negate, quick modify...) - Easy debug - Preventing mistakes
Tweet media one
11
62
401
@IMAC2
Álvaro Trigo 🐦🔥
4 years
5 things you can do to improve as a web developer: 1⃣Contribute to open-source projects. 2⃣Read others' code. 3⃣Ask for code reviews from others. 4⃣Write short functions/methods. 5⃣Have side projects.
12
60
397
@IMAC2
Álvaro Trigo 🐦🔥
4 years
🚫 You don't know to know EVERYTHING. - Learn HTML - Learn CSS - Learn a bit of JavaScript - Learn a bit of PHP (or other back-end language) CONGRATULATIONS! Now you'll be able to make 80% of the websites out there.
15
57
379
@IMAC2
Álvaro Trigo 🐦🔥
3 years
Simple tip! 👇 Do not add unnecessary context to your code. Keep it clean and simple.
Tweet media one
9
41
369
@IMAC2
Álvaro Trigo 🐦🔥
4 years
Did you know this? 👇 You can press H on Chrome, Safari and Firefox dev tools to hide/show elements! No need to manually add "display: none" anymore! 🥳
15
97
374
@IMAC2
Álvaro Trigo 🐦🔥
4 years
Developers logic...
Tweet media one
16
59
359
@IMAC2
Álvaro Trigo 🐦🔥
4 years
CSS property flex-direction and it's logic. This used to drive me crazy!
Tweet media one
26
57
362
@IMAC2
Álvaro Trigo 🐦🔥
3 years
Have you tried this CSS pseudo-class? 😍 :placeholder-shown It applies when the placeholder is visible and the user didn't type anything yet.
4
67
359
@IMAC2
Álvaro Trigo 🐦🔥
6 years
Wow!! I had no idea I could do this! 😱
Tweet media one
16
90
330
@IMAC2
Álvaro Trigo 🐦🔥
3 years
Coding is the tool, not the goal. Never forget that.
7
54
332
@IMAC2
Álvaro Trigo 🐦🔥
5 years
Hoho!! Did you know about the `details` HTML tag? I didn't! It also adds the attribute `open` to define the open state! Compatible in all browsers except IE & Edge.
17
88
330
@IMAC2
Álvaro Trigo 🐦🔥
4 years
Case-insensitive selector! 😍 Just add an `i` at the end of the value! Compatible with all modern browsers. 👇👇👇
Tweet media one
3
70
331
@IMAC2
Álvaro Trigo 🐦🔥
4 years
Functions do one thing. - Avoid mysterious params that you won't understand unless you read the function arguments. - Functions should do what they say they do.
Tweet media one
9
50
324
@IMAC2
Álvaro Trigo 🐦🔥
5 years
Yeeey! 🙃 I just learned about Chrome screenshots today! 💪 Really come on handy sometimes!
12
90
318
@IMAC2
Álvaro Trigo 🐦🔥
3 years
I'm joining @gumroad part-time!!! ✨ So excited to be part of the team! I've been selling products on Gumroad for 5 years and now I'm so glad to be part of it!
35
5
316
@IMAC2
Álvaro Trigo 🐦🔥
3 years
i18n. Weird name uh? Ever wondered where it came from? I did! 👇
Tweet media one
13
46
298
@IMAC2
Álvaro Trigo 🐦🔥
4 years
I can't believe I coded without using Emmet and these 2 extensions for Visual Code Studio: - htmltagwrap - Auto Close Tag Look at this beauty! 😍😍
13
36
294
@IMAC2
Álvaro Trigo 🐦🔥
5 years
🔥 I've created a new slider effect! 🔥 I finally named it "Cards"! Thanks to all of you for your suggestions! Hope you like it! Check it out! here! →
15
45
292
@IMAC2
Álvaro Trigo 🐦🔥
6 years
🥳🥳 Today I became CEO! 🥳🥳 Since I was a kid I always joked with creating my own company. Now those jokes became real! I guess it is true when they say "There's a grain of truth in every joke". 🤔
37
19
287
@IMAC2
Álvaro Trigo 🐦🔥
4 years
JavaScript tip: Keep your event listeners clean and centralised! 👇
Tweet media one
9
45
285
@IMAC2
Álvaro Trigo 🐦🔥
3 years
6 mistakes people do when publishing a new Github project: 👇 1- Don't market it. 2- Don't add demos. 3- Don't publish it to npm. 4- Don't add a LICENSE file. 5- Don't add a proper README. 6- Don't create releases with changelog info. 🔝Make it as easier as possible for others.
7
48
276
@IMAC2
Álvaro Trigo 🐦🔥
4 years
Things I made in 2020: 🏗️ 1 company created 🖥️ 1,722 GitHub contributions ♻️ 1 fullPage.js release 🎮 3 side projects (2 launched SAAS) 🗣️ 1 tech talk 🎙️ 1 podcast interview ✍️ 1 written interview 🌎 2 countries visited ⌨️ 1 mechanical keyboard purchased
15
5
264
@IMAC2
Álvaro Trigo 🐦🔥
6 years
Things I made in 2018: 😱 fullPage.js v3 🎁 fullpage wrappers: Vue / React / Angular 🧪 fullPage unit tests 🇨🇳 Chinese & 🇰🇷Korean FP docs 🌎 New fullPage site | 5 languages ✨ New multiScroll.js extension 🔊 2 podcast interviews 🖥️ 977 GitHub contributions 😎 Became CEO
11
19
256
@IMAC2
Álvaro Trigo 🐦🔥
5 years
Case-insensitive selector! 😍 Just add an `i` at the end of the value! Compatible with most modern browsers. 👇👇👇
Tweet media one
3
72
258
@IMAC2
Álvaro Trigo 🐦🔥
6 years
🔥 I've created a game with CSS transitions and Javascript!! 🔥 No canvas! My score is 40.140! ⭐️ Can you beat me? 🖥️ Available in Codepen → 👥 Open sourced 📜Blog post with the "Making of"
22
65
233