CSSでキャラクターを描くのは、まるでデジタル折り紙のような楽しさがあります。折り紙では、紙を折ったり切ったりして複雑な形を作るように、CSSではclip-pathを使ってパーツごとに形を切り出し、それらを組み合わせてキャラクターを表現します。
A monthly overview of things you need to know as an architect or aspiring architect. Unlock the full InfoQ experience by logging in! Stay updated with your favorite authors and topics, engage with ...
なんとなくmaskが苦手なので、勉強してみる。 マスクって覆い隠すって意味かと思ってたのに、フォトショとかCSSだと くり抜くって意味に転化するあたりで、すでに混乱気味。 多角形(polygon)の上の位置(左から40% 上から0%) 右の位置(左から90% 上から50% ...
これまで CSS だけを利用して三角形を作る際は border を利用することが多かった。 border を利用した実装だと何を表現しているのか一見してもわかりづらい。 実装方法 borderではなく、clip-pathプロパティにpolygon()関数を利用する。
One fine day, during my internship at the office, I was assigned a task that seemed simple at first: create a custom shape and place content over it. Like many ...
Generate and inline critical-path CSS example using [Critical](http://github.com/addyosmani/critical). Live demo of [before](http://addyosmani.github.io/critical-path ...
<svg>と<use>要素で遊んだことがある人は、Shadow DOMが少し出てきます。クローン要素には、「通過」を選択する方法に制限があるShadow DOMがあります。そして、<web-components>に入ると、同じようなワックスのボールになります。 Webコンポーネントにスタイルを ...