两棵树是什么牌子| 故宫什么时候闭馆| 腺样体肥大挂什么科| 风热感冒是什么意思| 四时感冒什么意思| 八府巡按是什么官| 输血四项检查是什么| 被蝎子蛰了有什么好处| 道心是什么意思| versace什么牌子| 眼睛老是肿着是什么原因造成的| 总流鼻血是什么原因| 什么是放疗| 妈妈吃什么帮宝宝排气| 男人精子少是什么原因| 深圳有什么好吃的| 厨娘是什么意思| 胎心停了是什么原因引起的| 壮的偏旁叫什么名字| 张予曦为什么像混血| 慢性荨麻疹是什么症状| 经颅多普勒检查什么| 30年的婚姻是什么婚| 为什么身体没力气也没有精神| 黄痰是什么原因造成的| 二月十七是什么星座| 於是什么意思| 偷梁换柱是什么意思| 什么食物降血压| 血压高吃什么药比较好| 心肌炎是什么病| 间作套种是什么意思| 大脑供血不足是什么原因引起的| 什么树最值钱| 多吃西红柿有什么好处| 大人睡觉流口水是什么原因引起的| 什么学习机好| 吃氨糖有什么副作用| 尿道口流白色液体是什么病| trust是什么意思| 六月六日是什么星座| 新生儿缺氧会有什么后遗症| 橱柜用什么材料好| 起薪是什么意思| 血管检查什么方法最好| 口苦是什么原因引起的| 脂肪肝吃什么药效果好| 宜子痣是什么意思| 内痔疮有什么症状| 囊性灶什么意思严重吗| 电风扇什么牌子好| 口腔痛什么原因| 梦见掉头发是什么意思| 生姜吃多了有什么害处| 观音菩萨是属什么生肖| 6月22日什么星座| 荆州有什么大学| 独角仙生活在什么地方| 过年给老人买什么| 辅警政审主要审些什么| 高祖父的爸爸叫什么| 波立维什么时间吃最好| 胃疼有什么办法缓解| 翻车鱼为什么叫翻车鱼| 白芽奇兰是什么茶| 晚上吃什么有助于睡眠| 鱼缸底部铺什么好| 父亲节送什么花| 女人月经总是提前是什么原因| 体力不支是什么意思| 金箔是什么| 胎儿打嗝是什么原因| 嫑怹是什么意思| 羊水破了是什么症状| 理工科是什么意思| 小脑萎缩有什么症状| 血压高可以吃什么水果| 卜留克是什么菜| 细胞由什么组成| 眼球内容物包括什么| 足癣用什么药最快好| 痛风吃什么食物好得快| 腋臭看什么科| 辣条是什么意思| 女人左眼跳是什么意思| 乙肝两对半定量是什么意思| 文胸是什么| 朋友的反义词是什么| 血稠吃什么药| 什么牌子的氨基酸洗面奶好| 西字五行属什么| 香槟是什么酒| 大天真香是什么意思| 甲状腺功能是什么| 做梦梦到怀孕了是什么意思| 抑郁症什么症状表现| 孕妇吃什么补铁| 2026年是什么生肖年| 女人阴虚火旺吃什么药| ex是什么意思| 用红笔写名字代表什么| 户口本可以干什么坏事| 28岁今年属什么| 四点水的字与什么有关| 阴茎破皮擦什么药| 夜盲症是什么意思| 布施什么意思| 枣红色配什么颜色好看| 烦恼千千是什么生肖| bys是什么药| 什么食物含维生素b12最多| 灵芝的功效与作用是什么| 喝蒲公英根有什么好处| mac是什么意思啊| wht什么颜色| 老年阴道炎用什么药| 奶瓶什么材质好| 什么化妆品好用哪个牌子的| 井底之蛙的寓意是什么| 子痫是什么病| 穿刺活检能查出肿瘤是什么性质吗| 磨平了棱角是什么意思| 回民为什么不能吃猪肉| 秘诀是什么意思| 颈椎病睡什么枕头最好| 手脱皮擦什么药膏| 过敏性结膜炎用什么眼药水最好| 吃什么可以去脂肪肝| edd是什么意思| 年轻人白头发是什么原因引起的| 低钾血症是什么意思| 宝宝大便酸臭味是什么原因| 身份证拍照穿什么衣服| 黑枸杞泡水是什么颜色| 烧火棍是什么意思| 超敏c反应蛋白正常说明什么| 翡翠和玉有什么区别| wis是什么牌子| m蛋白是什么| gm眼镜是什么牌子| 杭州灵隐寺求什么最灵| 恨嫁什么意思| 化作风化作雨是什么歌| 白月光是什么意思| 肺部炎症用什么药最好| 用什么锅炒菜对人体健康更有益| 白质脱髓鞘是什么病| 狗和什么属相最配| 什么属相不能摆放大象| 一个夸一个瓜念什么| 莫吉托是什么| 炒菜是什么意思| 跳空缺口是什么意思| 乳腺炎不能吃什么| 竹叶青是什么| 五什么六什么| 狗与什么属相相冲| 多吃核桃有什么好处和坏处| 三氯蔗糖是什么东西| 嘴巴发甜是什么原因| 眼睛干涩有异物感用什么眼药水| 卵巢过度刺激综合症是什么| 邮戳是什么意思| 县人民医院是什么级别| 梦到被雷劈是什么意思| 腿毛旺盛是什么原因| 妈妈桑是什么意思| 陆代表什么数字| 乳房看什么科| dic是什么病| 人的本性是什么| 西安什么省| 涅盘什么意思| 生孩子送什么花比较好| 医保编码是什么| 医生会诊是什么意思| 咽炎吃什么好| 吃山竹有什么好处和坏处| 复读是什么意思| 胎盘低置是什么原因造成的| 喝红茶有什么好处和坏处| 惶恐是什么意思| 为什么海螺里有大海的声音| 2000年属什么| 夫妻相是什么意思| 倍他乐克是什么药| 容五行属什么| rt什么意思| 人大副主任是什么级别| 端庄的意思是什么| 宜夫痣是什么意思| 干什么挣钱快| 儿童乘坐飞机需要什么证件| 胸口疼痛挂什么科| 女人梦到被蛇咬是什么意思| 自尊是什么意思| 三月十三是什么星座| 什么是桥本甲状腺炎| 7什么意思| 总是放屁是什么原因引起的| 女性痔疮挂什么科室| 私生子什么意思| 什么都没有| 血压低挂什么科| 为什么男人喜欢女人| 大姨妈喝什么好| 飞行模式是什么意思| 肝掌是什么样子| 牙周炎吃什么消炎药| 胃疼胃胀吃什么药好| 10度左右穿什么衣服合适| 真如是什么意思| 火鸡面为什么这么贵| 4月23是什么星座| crp高是什么感染| 拉黑一个人意味着什么| 腿毛多是什么原因| 怀孕一个月有什么反应| 产妇吃什么水果好| 吃菠萝有什么好处| 无水酥油是什么| 步步为营是什么意思| 诸事不宜是什么意思| 县长属于什么级别| 阑尾炎什么症状表现| 成都机场叫什么名字| 鸡内金是什么东西| 经常肚子痛什么原因| 6.17什么星座| 紫色适合什么肤色的人| 爱情是什么样子的| or什么意思| 反胃想吐是什么原因| 铁树开花什么样| zero什么意思| 青鸾是什么意思| 曹丕为什么不杀曹植| 出痧是什么意思| 均匀是什么意思| 血小板是什么意思| 肩膀发麻是什么原因| 水为什么是绿色的| 氯化钠是什么| 日加匀念什么| 蔻依属于什么档次| 坐怀不乱是什么生肖| 号什么意思| 喝什么茶降血压| 羽毛球拍u是什么意思| 花金龟吃什么| 双子座和什么星座最不配| 油嘴滑舌是什么意思| 落差是什么意思| 胃幽门螺杆菌有什么症状| 梦见偷玉米是什么意思| 脑梗吃什么药最好| 骨质疏松吃什么钙片| 充饥是什么意思| 中国信什么教| 什么是形而上学| 青鹏软膏主要治疗什么| 什么是伴手礼| 蛋白酶是什么东西| 什么鱼吃泥鳅| 百度
Table of Contents
If you were starting out as a front end dev in 2020, what would you say is the first thing you would learn and why?
How do you determine what you want to turn into a blog post and what you leave as a simple Tweet?
Do you have a favorite CSS-Trick, where you were just like “wow”?
What would be your top 3 pieces of quick advice for developers trying to follow a similar path to growing their influence and exposure?
How much do you see yourself personally playing with Houdini APIs as they are released? Which API are you most excited about (Painting, Layout, Typed OM, …)?
What is your favorite thing about working at CodePen and/or CSS-Tricks?
What is something that you wish we could add in CSS?
Do you think it’s worth suggesting a { position: above-fold; }?
Since you’ve been writing blog posts for so long, have you developed a process for writing one?
CSS or CSS-in-JS?
Home Web Front-end CSS Tutorial Clips from my DEV AMA

爱民街(胜利路-解放路)道路建设工程监理招标

Apr 13, 2025 am 10:55 AM

百度 一旦遇到投诉,消费者就容易掉进商家设计的陷阱,哑巴吃黄连有苦难言。

Clips from my DEV AMA

I recently did an AMA over on DEV. Just taking the opportunity to port over some answers here like a good indiewebber.

If you were starting out as a front end dev in 2020, what would you say is the first thing you would learn and why?

You need to put yourself in a position where it’s your job to create and take care of a website. Even if that feels like a stretch for you early on. Get the domain, get the website on the public internet. Put your name on it. Now you’ve given yourself stakes, and you’ll learn technology because you must make your ideas come to life.

For me, 650 years ago, that was putting up a website for the ol’ college band. We needed a website! That sounded like fun to me, and I managed to struggle through buying a domain, hosting, and putting up a WordPress website. Then, over time, I learned front-end web technologies because I wanted to change up the design, change up the templates, add cool features, etc.

Get yourself a project and learn through the project.

How do you determine what you want to turn into a blog post and what you leave as a simple Tweet?

I usually won’t avoid the tweet. The tweet is usually a good proving ground for the blog post anyway. If nobody cared, eh, maybe not that good of a post. If it does get good engagement, it’s like the conversation around it is useful in the creation of the blog post. Plus, tweets are so easy to kick out the door. Blog posts, for me, on purpose, have a longer schedule that includes editing and scheduling and such.

Here’s an example tweet. Just a silly little UI experiment. I didn’t feel like waiting to blog about it to drop the demo. But from the Twitter thread, I got some interesting technical feedback, info about what parts people were most suprised by, and some other related ideas. That will, hopefully, lead to a much more robust blog post.

I even treat DEV like that, honestly. I wrote this blog post reaction quickly here, but then refined it for my own blog with some of the feedback.

Do you have a favorite CSS-Trick, where you were just like “wow”?

I think “scroll shadows” in CSS is one of my favorite CSS tricks of all time. It’s originally by Roman Komarov, but explained and improved by Lea Verou. I saw a tool the other day around the idea by Stefan Judis.

It’s a real mind-bender involving four-layered gradient backgrounds, each positioned, sized, and colored differently, and then behaviorally different regarding scrolling.

It’s not just a neat trick because it has real UX implications. Showing a shadow of where you can scroll is important UX. Consider this story of a recent design update in iOS that led to complete confusion around UI actions hidden behind a place you could scroll to, but had zero affordance on how to get there. (Happens to me all the time in Spotify, for the record.)

What would be your top 3 pieces of quick advice for developers trying to follow a similar path to growing their influence and exposure?

I think writing is literally the only way.

I can’t think of a developer with influence who has that influence for anything other than writing. Or if it’s not writing, then it’s a YouTube channel or some other form of creating public stuff.

How much do you see yourself personally playing with Houdini APIs as they are released? Which API are you most excited about (Painting, Layout, Typed OM, …)?

This super-low level stuff sometimes feels over my head. It’s hard for me to picture the industry implications of stuff like this just by looking at specs, ya know?

To me, it seems the Layout API has the most powerful potential.

What I’m imagining right now is that Houdini doesn’t affect normal day-to-day front-end developers like me that much. I won’t be writing much Houdini code. But I’ll use fancy things that other people create, because it does something useful for me. Just like most people don’t write their own libraries or have published npm packages — they just use them.

It’s fun to be wow’d by Houdini. If anyone is looking for that, make sure to look at Vincent De Oliveira’s showcase website.

What is your favorite thing about working at CodePen and/or CSS-Tricks?

You know what I really like? I like getting into the office every day and having a pretty decent amount of freedom of what I’m going to do that day. I’ll probably have meetings. I’ll probably have some stuff on the ol’ calendar. I’ll probably have some team expectations I’m trying to meet. But I also usually have plenty of time to pursue things that are interesting to me at the moment.

Sometimes I’m in the moment to drill through some emails. Sometimes I want to tinker with some demo that sounds like fun. Sometimes I want to write up a thought or record a video. Sometimes I want to plan something out or document something. Sometimes I want to talk something out with other people or do some pair programming.

I’m fortunate that I’m the boss (lol) and I put myself in that position on purpose so I have that freedom.

What is something that you wish we could add in CSS?

I feel like every time someone asks this we all should take every opportunity to scream Container Queries! until we get them.

The idea is that we should be able to write CSS that says, “When this element is this wide, this CSS should take effect.” And not just width, but whatever media queries we have at the page level already.

The best demo of a use case out there is Philip Walton’s page.

I want to write a card component that shuffles itself around based on how wide it is, not how wide the page is, because there isn’t always a direct connection between those two things (e.g. a card component can show up in a narrow sidebar on a large screen, but be full-width on a tablet or something).

Every component can be in a situation like that, so for the love of CSS, let me write media queries scoped to those components. I echo a lot of other people when I saw that if we had this, the vast majority of media queries we write would be these, not page-level.

Do you think it’s worth suggesting a { position: above-fold; }?

I’m not sure I’ve ever made a big fold-based decision once in my career. Not a big fan of that thinking. THERE IS A LINE IN WHICH THIS IMPORTANT MODULE MUST NOT CROSS, haha. Prioritizing the most important stuff to be higher up the page, sure. Websites don’t fold like newspapers.

Plus, we’ve got viewport units now, so if you absolutely need to position something in the top visible viewport area, you can.

Since you’ve been writing blog posts for so long, have you developed a process for writing one?

Sorta! It still feels pretty casual to me (let’s call my writing medium quality), so it’s not like I’m renting a cabin in the wilderness and finding inspiration in the sunsets and cheap whiskey.

  • I write down every blog post idea that comes to me. I try to keep that list fairly public but I also have a personal list where I can be even sloppier.
  • I put as much context into those lists as I can, so I can hope to summon up the same emotion that made me write it down in the first place. If I revisit the idea a week later and can’t, it’s probably not a very good idea.
  • I write up the post with as much context as I can. Light research is typically involved.
  • We have a lead editor on CSS-Tricks, so it’s reviewed by at least one person before being scheduled.

CSS or CSS-in-JS?

I see a ton of cool stuff happening in CSS-in-JS. I think it solves a lot of interesting problems for certain websites. For example, I very much like the idea of having the option to write styles that are scoped to a component programmatically, and thus are tree-shaken when the component isn’t used automatically.

But the web is a big place, and dare I say most websites aren’t built with JavaScript-powered component models. Thus, CSS-in-JS isn’t necessary or appropriate for a lot of sites.

Although, two things to be clear:

  • You can’t have CSS-in-JS without CSS. CSS-in-JS is still styles that are applied to elements. It doesn’t absolve you from learning CSS.
  • The CSS-in-JS landscape is wide. It’s a little hard to talk about so vaguely. Each project in the bucket of CSS-in-JS handles things a bit differently and how the styles are applied to the site is even quite wide. I think it sometimes gets lost in the arguments that some of the approaches literally make a CSS stylesheet that you link up like you would any other CSS — even Sass-produced CSS — which there doesn’t seem to be much argument about anymore.

The above is the detailed content of Clips from my DEV AMA. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

PHP Tutorial
1488
72
CSS tutorial for creating loading spinners and animations CSS tutorial for creating loading spinners and animations Jul 07, 2025 am 12:07 AM

There are three ways to create a CSS loading rotator: 1. Use the basic rotator of borders to achieve simple animation through HTML and CSS; 2. Use a custom rotator of multiple points to achieve the jump effect through different delay times; 3. Add a rotator in the button and switch classes through JavaScript to display the loading status. Each approach emphasizes the importance of design details such as color, size, accessibility and performance optimization to enhance the user experience.

Addressing CSS Browser Compatibility issues and prefixes Addressing CSS Browser Compatibility issues and prefixes Jul 07, 2025 am 01:44 AM

To deal with CSS browser compatibility and prefix issues, you need to understand the differences in browser support and use vendor prefixes reasonably. 1. Understand common problems such as Flexbox and Grid support, position:sticky invalid, and animation performance is different; 2. Check CanIuse confirmation feature support status; 3. Correctly use -webkit-, -moz-, -ms-, -o- and other manufacturer prefixes; 4. It is recommended to use Autoprefixer to automatically add prefixes; 5. Install PostCSS and configure browserslist to specify the target browser; 6. Automatically handle compatibility during construction; 7. Modernizr detection features can be used for old projects; 8. No need to pursue consistency of all browsers,

What is the difference between display: inline, display: block, and display: inline-block? What is the difference between display: inline, display: block, and display: inline-block? Jul 11, 2025 am 03:25 AM

Themaindifferencesbetweendisplay:inline,block,andinline-blockinHTML/CSSarelayoutbehavior,spaceusage,andstylingcontrol.1.Inlineelementsflowwithtext,don’tstartonnewlines,ignorewidth/height,andonlyapplyhorizontalpadding/margins—idealforinlinetextstyling

Styling visited links differently with CSS Styling visited links differently with CSS Jul 11, 2025 am 03:26 AM

Setting the style of links you have visited can improve the user experience, especially in content-intensive websites to help users navigate better. 1. Use CSS's: visited pseudo-class to define the style of the visited link, such as color changes; 2. Note that the browser only allows modification of some attributes due to privacy restrictions; 3. The color selection should be coordinated with the overall style to avoid abruptness; 4. The mobile terminal may not display this effect, and it is recommended to combine it with other visual prompts such as icon auxiliary logos.

Creating custom shapes with css clip-path Creating custom shapes with css clip-path Jul 09, 2025 am 01:29 AM

Use the clip-path attribute of CSS to crop elements into custom shapes, such as triangles, circular notches, polygons, etc., without relying on pictures or SVGs. Its advantages include: 1. Supports a variety of basic shapes such as circle, ellipse, polygon, etc.; 2. Responsive adjustment and adaptable to mobile terminals; 3. Easy to animation, and can be combined with hover or JavaScript to achieve dynamic effects; 4. It does not affect the layout flow, and only crops the display area. Common usages are such as circular clip-path:circle (50pxatcenter) and triangle clip-path:polygon (50%0%, 100 0%, 0 0%). Notice

What is the CSS Painting API? What is the CSS Painting API? Jul 04, 2025 am 02:16 AM

TheCSSPaintingAPIenablesdynamicimagegenerationinCSSusingJavaScript.1.DeveloperscreateaPaintWorkletclasswithapaint()method.2.TheyregisteritviaregisterPaint().3.ThecustompaintfunctionisthenusedinCSSpropertieslikebackground-image.Thisallowsfordynamicvis

How to create responsive images using CSS? How to create responsive images using CSS? Jul 15, 2025 am 01:10 AM

To create responsive images using CSS, it can be mainly achieved through the following methods: 1. Use max-width:100% and height:auto to allow the image to adapt to the container width while maintaining the proportion; 2. Use HTML's srcset and sizes attributes to intelligently load the image sources adapted to different screens; 3. Use object-fit and object-position to control image cropping and focus display. Together, these methods ensure that the images are presented clearly and beautifully on different devices.

What are common CSS browser inconsistencies? What are common CSS browser inconsistencies? Jul 26, 2025 am 07:04 AM

Different browsers have differences in CSS parsing, resulting in inconsistent display effects, mainly including the default style difference, box model calculation method, Flexbox and Grid layout support level, and inconsistent behavior of certain CSS attributes. 1. The default style processing is inconsistent. The solution is to use CSSReset or Normalize.css to unify the initial style; 2. The box model calculation method of the old version of IE is different. It is recommended to use box-sizing:border-box in a unified manner; 3. Flexbox and Grid perform differently in edge cases or in old versions. More tests and use Autoprefixer; 4. Some CSS attribute behaviors are inconsistent. CanIuse must be consulted and downgraded.

See all articles
孕妇尿路感染吃什么药 小暑吃黄鳝有什么好处 cpi指数上涨意味着什么 榆字五行属什么 耳加贵念什么
庶是什么意思 宫颈轻糜是什么意思 hardy是什么意思 你在看什么 口腔出血是什么原因
七月是什么生肖 用纸盒能做什么手工 鬼火是什么 总胆红素高什么意思 孕妇吃花生对胎儿有什么好处
闪婚是什么意思 脚心发痒是什么原因 什么帽子不能戴 2月出生是什么星座 林子大了什么鸟都有
为什么房间有蟑螂hcv8jop4ns7r.cn 纤维化是什么意思hcv7jop6ns4r.cn 青梅竹马是什么意思hcv9jop0ns7r.cn 秀五行属什么hcv9jop1ns6r.cn 苦瓜有什么作用hcv8jop3ns9r.cn
厅局级是什么级别gangsutong.com 遭罪什么意思hcv8jop8ns6r.cn 主治医师是什么级别youbangsi.com 眼科pd是什么意思hcv8jop4ns2r.cn 水清则无鱼什么意思hcv9jop1ns6r.cn
是什么hcv8jop7ns0r.cn 两个人在一起的意义是什么hcv8jop6ns7r.cn 6.17什么星座hanqikai.com 有什么菜hcv9jop0ns1r.cn 吉和页念什么96micro.com
满文军现在在干什么hcv8jop6ns1r.cn 怀孕一个月出血是什么情况hcv7jop6ns1r.cn 局级是什么级别hcv8jop1ns1r.cn 蟋蟀是靠什么发声的xinjiangjialails.com 獐子是什么动物hcv8jop9ns4r.cn
百度