:root { --hdr-gradient: linear-gradient( to right in oklab, oklch(70% 0.5 340) 0%, oklch(90% 0.5 200) 100% ); --sdr-gradient: linear-gradient(to right, #ff00fa 0%, #0ff 100%); background: var(--hdr-gradient); } Copy
CSSã§å®è£ ãããç¾ããã°ã©ãã¼ã·ã§ã³ã®ãã¼ãã¼ãããã«ã¯ãããè§ä¸¸ããååãå ãããã±ãããå®è£ ããã¹ã¿ã¤ã«ã·ã¼ãã®ãã¯ããã¯ãç´¹ä»ãã¾ãã ã°ã©ãã¼ã·ã§ã³ã®ãã¼ãã¼ã¯å²ã¨ç°¡åã«å®è£ ã§ãã¾ãããè§ä¸¸ã«ããã®ã¯ç®ããé±ã§ãããã¾ããç°¡åãªJavaScriptã§3Dãåç¾ããã¦ãã¾ãã Gradient borders with curves and 3d movement in CSS by Medhat Dawoud ä¸è¨ã¯åãã¤ã³ããæ訳ãããã®ã§ãã â»å½ããã°ã§ã®ç¿»è¨³è¨äºã¯ãå ãµã¤ãæ§ã«ã©ã¤ã»ã³ã¹ãå¾ã¦ç¿»è¨³ãã¦ãã¾ãã ã¯ããã« 1. ãã±ããèªä½ã®æ§ç¯ 2. ã°ã©ãã¼ã·ã§ã³ã®ãã¼ãã¼ãå®è£ 3. å·¦å³ã®ååãå®è£ 4. ã«ã¼ã½ã«ã®åãã«å¿ããã¢ãã¡ã¼ã·ã§ã³ãå®è£ ãã®å®è£ ã§å¦ãã ã㨠ã¯ããã« 2020å¹´10æ27æ¥ã«Next.jsã®åã®ã°ãã¼ãã«ã¦ã¼ã¶ã¼ã«ã³ãã¡ã¬ã³ã¹ãéå¬ãã
CSSã§ã°ã©ãã¼ã·ã§ã³ããããããããã«ãªã£ã¦ä¹ ããã§ããããã 2è²ãã¤ãªãã§ããã ãã®äººãå¤ãã®ã§ã¯ãªãã§ããããï¼ããããã¯ã¸ã§ãã¬ã¼ã¿ã¼ã§ã³ãããã¦çµããã«ãã¦ã¯ããªãã§ããããï¼ å®ã¯ãå¤ãç´°ãè¨å®ãããã¨ã§ãã°ã©ãã¼ã·ã§ã³ã«çã¾ããªããããè±ããªè¡¨ç¾ãå®ç¾ã§ãã¾ãã工夫ããã°ãããªè¡¨ç¾ãCSSã®ã¿ã§è¡ãã¾ãã å¾åã®å¿ç¨ä¾ã®å®è£ ã¯æå ¥åã®CSSã§ã¯å°é£ãªé¨åãããã®ã§ãSCSSã使ã£ã¦è¨è¿°ãã¦ãã¾ããSCSSã使ãã¨CSSã ãã§ã¯é£ããå¦çãã¹ã ã¼ãºã«è¡ããmixinæ©è½ã使ãã°ãé¢åãªå ¥åæéãçããã®ã§ä¾¿å©ã§ããè¨äºå ã§ç´¹ä»ãã¦ããã°ã©ãã¼ã·ã§ã³ã®çæmixinãç¨æãã¾ããã ãã¢ãå¥ã¦ã¤ã³ãã¦ã§åçãã 使ããã¦ããmixinã確èªãã CSSã°ã©ãã¼ã·ã§ã³ã®ç¨®é¡ CSSã°ã©ãã¼ã·ã§ã³ã¯è²ãæ±ãã®ã§background-colorããããã£ã使ããããªãã¾ãããbackg
Webãµã¤ããã¹ããã¢ããªã®UIãã¶ã¤ã³ã§ãã使ç¨ãããã°ã©ãã¼ã·ã§ã³ã¨ã·ã£ãã¦ãããç¾ããå®è£ ããã¹ã¿ã¤ã«ã·ã¼ãã®ãã¯ããã¯ãç´¹ä»ãã¾ãã ãã®ãã¯ããã¯ã使ç¨ãããã©ã°ã¤ã³ããªã³ã©ã¤ã³ãã¼ã«ããªãªã¼ã¹ããã¦ããã®ã§ãæãéãã®ç¾ããã°ã©ãã¼ã·ã§ã³ã¨ã·ã£ãã¦ãç°¡åã«å©ç¨ã§ãã¾ãã Using easing for more than just CSS transitions by Kilian Valkhof ä¸è¨ã¯åãã¤ã³ããæ訳ãããã®ã§ãã â»å½ããã°ã§ã®ç¿»è¨³è¨äºã¯ãå ãµã¤ãæ§ã«ã©ã¤ã»ã³ã¹ãå¾ã¦ç¿»è¨³ãã¦ãã¾ãã ã¯ããã« ã¢ãã¡ã¼ã·ã§ã³ã¨ãã©ã³ã¸ã·ã§ã³ã«çµã¿è¾¼ã¾ãã¦ããã¤ã¼ã¸ã³ã° ã°ã©ãã¼ã·ã§ã³ãCSSã§ããç¾ããå®è£ ãããã¯ãã㯠ã·ã£ãã¦ãCSSã§ããç¾ããå®è£ ãããã¯ãã㯠è¦æ ãã®ããWebãµã¤ããå¶ä½ãã ã¯ããã« ã¢ãã¡ã¼ã·ã§ã³ã®å®è£ ã«ã¤ã¼ã¸ã³ã°æ²ç·ã使ç¨ãã¦ãããç¹ç´°
å¶ä½æã®æé©ãªã¢ãã¿ã¼ãæé©ãªç §æç°å¢ã§ç¾ããã°ã©ãã¼ã·ã§ã³ãä½æãã¦ãããã¸ã¿ã¼ã®ç°å¢ã§ã¯ãã³ãã£ã³ã°ã¨å¼ã°ããæ¿æ·¡ã®ç¸ãã§ãã¦ãã¾ãããããã¾ããã Webãã¼ã¸ã®èæ¯ãªã©ã«ä½¿ç¨ããã°ã©ãã¼ã·ã§ã³ã«ã§ãã¦ãã¾ããã³ãã£ã³ã°ãããããæ»ããã«è¡¨ç¤ºããããã®JavaScriptã©ã¤ãã©ãªãç´¹ä»ãã¾ãã js-noisy-gradient åçãã¤ã©ã¹ããªã©ç»åã®ã°ã©ãã¼ã·ã§ã³ã§çºçãããã³ãã£ã³ã°ããããããå ´åã¯ã以åã®è¨äºãã覧ãã ããã ç»åã«ã§ããæ¿æ·¡ã®ç¸ããã³ãã£ã³ã°ããããããæ¹æ³ ã°ã©ãã¼ã·ã§ã³ã®ãã³ãã£ã³ã°ã¨ã¯ ãã³ãã£ã³ã°ã®è§£æ±ºæ¹æ³ js-noisy-gradientã®ä½¿ãæ¹ ã°ã©ãã¼ã·ã§ã³ã®ãã³ãã£ã³ã°ã¨ã¯ Webãã¼ã¸ã®èæ¯ã«ã°ã©ãã¼ã·ã§ã³ã使ç¨ããå ´åããã³ãã£ã³ã°ã¨å¼ã°ããæ¿æ·¡ã®ç¸ãã§ãã¦ãã¾ããã¨ãããã¾ãã ä¾ãã°ã#112233ãã#223344ã®ç·å½¢ã°ã©ã
æè¿ã§ã¯ã°ã©ãã¼ã·ã§ã³ã®ä½¿ãæ¹ãããããé²åãã¦ãã¾ããä¸ã§ããããã¼ãã¹ã¯ãã¼ã«ã«åããã¦ãã°ã©ã¼ãã·ã§ã³ãå¤åããã¨ãã§ã¯ãã¯é常ã«ç¾ãããä¸åº¦ã¯è©¦ãã¦ã¿ããå®è£ ã ã¨æãã¾ãã ããã¼ããã¨ããã¦ã¹ã®åãã«è¿½å¾ãã¦ã°ã©ãã¼ã·ã§ã³ãå¤åãããã¿ã³ãå®è£ ããã¹ã¿ã¤ã«ã·ã¼ãã®ãã¯ããã¯ãç´¹ä»ãã¾ãã å®è£ ã¯é常ã«ç°¡åã§ãå¿ç¨ãå©ãã®ã§ããã²ã試ããã ããã Stunning hover effects with CSS variables by Tobias Reich ä¸è¨ã¯åãã¤ã³ããæ訳ãããã®ã§ãã â»å½ããã°ã§ã®ç¿»è¨³è¨äºã¯ãå ãµã¤ãæ§ã«ã©ã¤ã»ã³ã¹ãå¾ã¦ç¿»è¨³ãã¦ãã¾ãã ã¤ã³ã¹ãã¤ã¢ãããç¾ããã°ã©ãã¼ã·ã§ã³ ã°ã©ãã¼ã·ã§ã³ãå¤åããã¨ãã§ã¯ãã®å®è£ æ¹æ³ å®è£ ããã㢠ãã®ã¨ãã§ã¯ãã®å¯è½æ§ ãããã質åã¨çã ã¤ã³ã¹ãã¤ã¢ãããç¾ããã°ã©ãã¼ã·ã§ã³ Groverã«ããéã³å¿æº¢ããç¾
ããä¸å¹´ã§ã°ã©ãã¼ã·ã§ã³ã®ä½¿ãæ¹ãã ãã¶é²åãã¦ãã¾ããã使ç¨ããã«ã©ã¼ã ãã§ãªãã使ç¨ããå ´æã«ãå¤åãè¦ããã¾ãã Webãµã¤ããã¹ããã¢ããªã§æè¿å¢ãã¦ããã°ã©ãã¼ã·ã§ã³ã®ãã¼ãã¼ãCSSã§å®è£ ãããã¾ãã¾ãªãã¯ããã¯ãç´¹ä»ãã¾ãã Gradient Borders in CSS â»CSS-TRICKSããªãã¥ã¼ã¢ã«ãããã°ã©ãã¼ã·ã§ã³ãéæã«ä½¿ç¨ããã¦ãã¾ããã ä¸è¨ã¯åãã¤ã³ããæ訳ãããã®ã§ãã â»å½ããã°ã§ã®ç¿»è¨³è¨äºã¯ãå ãµã¤ãæ§ã«ã©ã¤ã»ã³ã¹ãå¾ã¦ç¿»è¨³ãã¦ãã¾ãã è¦ç´ ã®å¨ãã«ã°ã©ãã¼ã·ã§ã³ã®ãã¼ãã¼ãå¿ è¦ãªå ´åãã©ããã¾ããï¼ ã°ã©ãã¼ã·ã§ã³ã®ãã¼ãã¼ãå®è£ ããCSSã®APIã¯ããã¾ããã ç·å½¢ã°ã©ãã¼ã·ã§ã³ã®èæ¯ãæã¤ã©ããã¼è¦ç´ ãä½æããå°ãå°ããå å´ã®è¦ç´ ã«èæ¯ãå®ç¾©ãã¦ããæãããã«ãã¼ãã¼ãå®è£ ãã¾ãã ãããå®è£ ããã¨ãä¸è¨ã®ããã«ãªãã¾ãã
CSSã®ã°ã©ãã¼ã·ã§ã³æå®ãã©ããã¦ã¾ããï¼ Photoshopãªã©ã§ãªãã¸ã§ã¯ãã®ã°ã©ãã¼ã·ã§ã³ãæå®ãã¦ãã£ãã CSSãã³ãã¼ ã¨ããæ©è½ã§ãã®ã¾ã¾CSSãçæã§ãããã Ultimate CSS Gradient Generator ã¿ãããªãµã¤ãã§CSSãçæããã¦ãããè²¼ãä»ãããããæ¹æ³ãããã¾ãããã§ããã°çå±ãçè«ãããç¨åº¦ç解ããããã§ä½¿ãããªãã¦ã¿ãããã®ã§ãã æå¤ã¨ç¥ããªããã¨ãå¤ãã£ãããããªãã¨ãªãæã£ãéãã«ãªã£ããç¨åº¦ã§æ¢ã¾ã£ã¦ãã人ãå°ãªãã¯ãªãã®ã§ã¯ãªããã¨æãã¾ãã®ã§ããããããå ¼ãã¦è¦ã¦ã¿ã¾ãããã 1. gradientæå®ã®çå±ãç¥ãã 1: gradientæå®ã«ã¯ä»¥ä¸ã®ï¼ç¨®é¡ãããã¾ãã ç·å½¢ã°ã©ãã¼ã·ã§ã³ linear-gradient() åå½¢ã°ã©ãã¼ã·ã§ã³ radial-gradient() å復ç·å½¢ã°ã©ãã¼ã·ã§ã³ repeating
Webãµã¤ããã¹ããã¢ããªã§äººæ°ãé«ããè²ç¸ãå¤åãããç¾ããã°ã©ãã¼ã·ã§ã³ãCSSã®ã³ã¼ãã»ãã¶ã¤ã³ç´ æã§å©ç¨ã§ãããªã¼ãã³ã½ã¼ã¹ã®ç¡æãµã¤ããç´¹ä»ãã¾ãã å¶ä½è ï¼@fmaldonadoyï¼ã¯15æ³ã®ãã¶ã¤ãã¼å ¼Webãããããã¼ã§ããã®ç¾ããã°ã©ãã¼ã·ã§ã³ã¯æ¥ã æ´æ°ãããã©ãã©ãå¢ãã¦ãã¾ãã
ãã¿ã³ãç©å½¢ãªã©ã®è¦ç´ ã«ã·ã£ãã¦ãä»ããæã¯ãbox-shadowãã便å©ã§ããã1è²ã¾ãã¯éãã¦ãå ¨ä½ãåä¸ã®ã«ã©ã¼ã§ããã·ã£ãã¦ãé©ç¨ãããã¨ãã§ãã¾ããã 2è²ã®ç¾ããCSSã°ã©ãã¼ã·ã§ã³ã§ã·ã£ãã¦ãé©ç¨ããPure CSSã®å®è£ ãç´¹ä»ãã¾ãã Gradient shadow in pure CSS ã㢠å®è£ ã㢠ã¾ãã¯ãå®éã®åä½ããè¦ã¦ã¾ãããã 2è²ã®ç¾ããã°ã©ãã¼ã·ã§ã³ãä¼´ã£ãã·ã£ãã¦ã¯ããã¿ã³ã®ãã¼ãã«æã»ããã¼æã»ã¢ã¯ãã£ãæã®ããããã§ç°ãªãã¾ãã
Webãã¶ã¤ã³ãã¹ããã¢ããªã«ä½¿ç¨ãããã°ã©ãã¼ã·ã§ã³ãæè¿ã§ã¯é²åãã¦ãã¾ããä¸æåã¾ã§ã¯ããã¹ãã«ç³»ã®ã°ã©ãã¼ã·ã§ã³ã人æ°ã§ããããæè¿ã§ã¯2è²ã使ç¨ããé®®ãããªã°ã©ãã¼ã·ã§ã³ãåä¸è²ç¸ã®ã°ã©ãã¼ã·ã§ã³ã注ç®ããã¦ãã¾ãã UIãã¶ã¤ã³ã®ã³ã³ãã¼ãã³ããèæ¯ã«ã´ã£ãããªç¾ããã°ã©ãã¼ã·ã§ã³ãä½æã§ããç¡æãã¼ã«ã»ç¡æç´ æãç´¹ä»ãã¾ãã
æè¿ã®ã¦ã§ããã¶ã¤ã³ã§ããè¦ããããé®®ãããªé è²ã®ã°ã©ãã¼ã·ã§ã³ã«ã©ã¼ããæ¢ãã§ããã WebGradients ã¯ãã©ããªã¦ã§ããµã¤ãã§ãå©ç¨ã§ããç¾ããã°ã©ãã¼ã·ã§ã³ã«ã©ã¼180種é¡ãæãããç¡æã®é è²ã³ã¬ã¯ã·ã§ã³ãã¼ã«ã§ãããã¿ã³ãã¯ãªãã¯ããã ãã§ãInternet Explorer ã Chrome ãªã©ã¯ãã¹ãã©ã¦ã¶å¯¾å¿ã®CSS3ã³ã¼ããã³ããã§ãã¾ãã使ãåæãããã®ã§ãã¯ã¼ã¯ããã¼ã«å ããããµã¼ãã¹ã®ã²ã¨ã¤ã§ãã 詳細ã¯ä»¥ä¸ããã ã³ããèªç±ï¼ç¾ããã°ã©ãã¼ã·ã§ã³ã180種é¡æãã WebGradients WebGradients ã§ã¯ãé è²ã®åèã«ãããç¾ããã°ã©ãã¼ã·ã§ã³ã«ã©ã¼ãä¸è¦§ã§æã£ã¦ããã使ãæ¹ãã¨ã¦ãã·ã³ãã«ã§ããåããã«ã§ã¯ã2500x2500pxã®PNGãã¡ã¤ã«ããã¦ã³ãã¼ãã§ãããã使ç¨ãã¦ããè²ã®HEXã³ã¼ããã¾ã¨ãã¦ç¢ºèªã§ããWebãã¶ã¤ã³å¶ä½ã«ä¾¿
ã³ã³ãã³ãã®åºåãã«ä½¿ç¨ããç·ããã¶ã¤ã³ã®ã¢ã¯ã»ã³ãã«ä½¿ããã©ã¤ã³ããã¼ãã¼ãCSSã§ç´ æµã«ãã¶ã¤ã³ããã¹ã¿ã¤ã«ã·ã¼ãã®ãã¯ããã¯ãç´¹ä»ãã¾ãã borderããããã£ã使ã£ãã·ã³ãã«ãªãã®ãããã°ã©ãã¼ã·ã§ã³ãçä¼¼è¦ç´ ãã¢ãã¡ã¼ã·ã§ã³ã使ã£ãã¢ã¤ãã¢ãç´ æ´ããããã®ã¾ã§ãã³ããã§ç°¡åã«å©ç¨ã§ãã¾ãã
jQuery Gradientify plugin - demo CSS3ã®ã°ã©ãã¼ã·ã§ã³ã§èæ¯ã¢ãã¡ã¼ã·ã§ã³ã§ããjQueryãã©ã°ã¤ã³ãGradientifyã åã«ã°ã©ãã¼ã·ã§ã³ããããã ãã§ãªããã¢ãã¡ã¼ã·ã§ã³ãããããã®ã¯ããããã§ãã é¢é£ã¨ã³ã㪠æ»ãããªã°ã©ãã¼ã·ã§ã³ã®ã¢ãã¡ã¼ã·ã§ã³ãçæã§ãããgranim.jsã ç»åèæ¯ã«ãããããã°ã©ãã¼ã·ã§ã³ãä½ã£ã¦ããããGrade.jsã ããã¹ãã®ã°ã©ãã¼ã·ã§ã³ã表ç¾ããReactã³ã³ãã¼ãã³ããReact Text Gradientã
Granim.jsã¯ã¢ãã¡ã¼ã·ã§ã³ããªããä¸å®ã®æéæ¯ã«è²ãå¤æ´ãããã°ã©ãã¼ã·ã§ã³ãä½æã§ããã¹ã¯ãªããã§ããéä¾ååã§åä½ã§åä½ãã¦ããã¾ãããµã¤ãºãå§ç¸®çã§10kbåå¾ã¨ãªã£ã¦ãã¾ããè¨å®é ç®ã¯è²ã®æå®ãã°ã©ãã¼ã·ã§ã³ã®æ¹åãééå¦çãå¤åæéãªã©ãªã©ãcanvasãç¨æãã¦ä½ãã®ã§ããããå¿ç¨ãå¹ãããã§ããã©ã¤ã»ã³ã¹ã¯MITã Granim.js
京ã¢ãæ¾ç«äºä»¶ãåãã¦ãã¡ã«ã«ãªã«äº¬ã¢ãé¢é£ã°ããºåºåãæ¥å¢ãã¦ãã¾ãããããä¸ã«ã¯é«é¡ãããåºåããã£ãããããããã¡ã«ã«ãªã§äº¬ã¢ãã°ããºÂ â¦
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}