Top Related Projects
HTML/CSS drawing in the style of an 18th-century oil painting. Hand-coded entirely in HTML & CSS.
CSS loading animations with minimal effort!
CSS is powerful, you can do a lot of things without JS.
⚡️ A collection of tips to help take your CSS skills pro 🦾
A collection of CSS3 powered hover effects to be applied to links, buttons, logos, SVG, featured images and so on. Easily apply to your own elements, modify or just use for inspiration. Available in CSS, Sass, and LESS.
High-level guidelines for writing manageable, maintainable CSS
Quick Overview
CSS-Inspiration is a GitHub repository that serves as a collection of CSS effects, animations, and creative designs. It showcases various CSS techniques and tricks, providing developers with inspiration and practical examples for enhancing web designs and user interfaces.
Pros
- Extensive collection of CSS effects and animations
- Well-organized with categorized examples
- Includes both simple and complex CSS techniques
- Regularly updated with new content
Cons
- Primarily in Chinese, which may be a barrier for non-Chinese speakers
- Some examples may not be fully optimized for cross-browser compatibility
- Lacks detailed explanations for more complex techniques
- May require additional JavaScript for certain effects
Code Examples
- Creating a gradient text effect:
.gradient-text {
background-image: linear-gradient(to right, #ff8a00, #e52e71);
-webkit-background-clip: text;
color: transparent;
}
- Implementing a hover effect with pseudo-elements:
.hover-effect {
position: relative;
overflow: hidden;
}
.hover-effect::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.3);
transition: 0.5s;
}
.hover-effect:hover::before {
left: 100%;
}
- Creating a parallax scrolling effect:
.parallax {
background-image: url('background.jpg');
height: 100vh;
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
Getting Started
To use the CSS effects from CSS-Inspiration:
- Browse the repository at https://github.com/chokcoco/CSS-Inspiration
- Find an effect you want to implement
- Copy the relevant CSS code
- Paste the CSS into your project's stylesheet
- Add the corresponding HTML structure to your markup
- Adjust the CSS as needed to fit your design
Example:
<div class="gradient-text">Gradient Text Effect</div>
.gradient-text {
background-image: linear-gradient(to right, #ff8a00, #e52e71);
-webkit-background-clip: text;
color: transparent;
font-size: 2em;
font-weight: bold;
}
Competitor Comparisons
HTML/CSS drawing in the style of an 18th-century oil painting. Hand-coded entirely in HTML & CSS.
Pros of purecss-francine
- Showcases an impressive single, complex CSS artwork
- Demonstrates advanced CSS techniques in a cohesive project
- Provides a unique, visually striking example of pure CSS capabilities
Cons of purecss-francine
- Limited to a single artwork, less diverse than CSS-Inspiration
- May be less practical for learning everyday CSS techniques
- Lacks explanations or tutorials for the techniques used
Code Comparison
purecss-francine:
.hair-back {
width: 180px;
height: 300px;
border-radius: 0 0 100px 100px;
background: #111;
margin-left: -90px;
position: absolute;
z-index: 3;
}
CSS-Inspiration:
.gradient-border {
--borderWidth: 3px;
background: #1D1F20;
position: relative;
border-radius: var(--borderWidth);
}
purecss-francine focuses on creating complex shapes and structures for a specific artwork, while CSS-Inspiration provides more general-purpose CSS techniques that can be applied to various projects. CSS-Inspiration offers a wider range of examples and explanations, making it more suitable for learning and reference. However, purecss-francine showcases the extreme possibilities of CSS in a visually impressive manner.
CSS loading animations with minimal effort!
Pros of Whirl
- Focuses specifically on loading animations and spinners
- Provides a wide variety of pre-built, customizable loading animations
- Includes a live demo page for easy visualization and selection
Cons of Whirl
- Limited to loading animations, less diverse than CSS-Inspiration
- Fewer examples overall compared to CSS-Inspiration
- Less detailed explanations of the CSS techniques used
Code Comparison
CSS-Inspiration example (3D text effect):
.text-3d {
text-transform: uppercase;
font-size: 6em;
color: #f2f2f2;
text-shadow: 1px 1px 1px #919191,
1px 2px 1px #919191,
1px 3px 1px #919191;
}
Whirl example (Simple spinner):
.whirl:after {
content: "\0020";
display: block;
width: 40px;
height: 40px;
border-radius: 50%;
border: 6px solid #fff;
border-color: #fff transparent #fff transparent;
animation: whirl 1.5s linear infinite;
}
Both repositories offer valuable CSS resources, with CSS-Inspiration providing a broader range of effects and techniques, while Whirl specializes in loading animations. CSS-Inspiration tends to offer more detailed explanations, making it better for learning, while Whirl excels in providing ready-to-use loading spinners for quick implementation in projects.
CSS is powerful, you can do a lot of things without JS.
Pros of You-Dont-Need-JavaScript
- Focuses specifically on replacing JavaScript functionality with CSS, providing clear alternatives
- Includes practical examples for common UI components and interactions
- Encourages better performance and accessibility by reducing reliance on JavaScript
Cons of You-Dont-Need-JavaScript
- Limited scope compared to CSS-Inspiration, which covers a broader range of CSS techniques
- May not cover more complex interactions that genuinely require JavaScript
- Less frequently updated, potentially missing newer CSS capabilities
Code Comparison
CSS-Inspiration example (3D text effect):
.text-3d {
text-shadow: 1px 1px #999, 2px 2px #888, 3px 3px #777, 4px 4px #666;
}
You-Dont-Need-JavaScript example (accordion without JS):
.accordion-content {
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease-out;
}
.accordion-input:checked ~ .accordion-content {
max-height: 1000px;
}
Both repositories offer valuable CSS techniques, but with different focuses. CSS-Inspiration provides a wide array of creative CSS effects and layouts, while You-Dont-Need-JavaScript specifically targets replacing JavaScript functionality with CSS. The choice between them depends on whether you're looking for general CSS inspiration or ways to reduce JavaScript usage in your projects.
⚡️ A collection of tips to help take your CSS skills pro 🦾
Pros of css-protips
- More comprehensive coverage of CSS best practices and techniques
- Better organized with clear categories and explanations
- Regularly updated with new tips and community contributions
Cons of css-protips
- Lacks visual examples for many tips
- Focuses more on general CSS tips rather than creative inspiration
- May be overwhelming for beginners due to the large number of tips
Code Comparison
CSS-Inspiration example (creative animation):
.gradient-animation {
background: linear-gradient(45deg, #f3ec78, #af4261);
background-size: 400% 400%;
animation: gradient 15s ease infinite;
}
css-protips example (practical tip):
.truncate {
width: 250px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
CSS-Inspiration focuses on creative and visually appealing CSS techniques, often showcasing complex animations and effects. In contrast, css-protips provides practical tips and best practices for everyday CSS usage, covering a wide range of topics from layout to performance optimization.
While CSS-Inspiration is excellent for finding inspiration and learning advanced CSS techniques, css-protips is more suitable for developers looking to improve their overall CSS skills and coding practices. Both repositories complement each other well, offering different perspectives on CSS development.
A collection of CSS3 powered hover effects to be applied to links, buttons, logos, SVG, featured images and so on. Easily apply to your own elements, modify or just use for inspiration. Available in CSS, Sass, and LESS.
Pros of Hover
- Focused specifically on hover effects, providing a comprehensive collection
- Includes a CSS-only solution, making it lightweight and easy to implement
- Well-documented with clear examples and usage instructions
Cons of Hover
- Limited to hover effects, lacking variety in other CSS techniques
- Less frequently updated compared to CSS-Inspiration
- Smaller community and fewer contributors
Code Comparison
CSS-Inspiration example (3D text effect):
.text-3d {
text-transform: uppercase;
font-size: 6em;
color: #f2f2f2;
text-shadow: 1px 1px 1px #919191,
1px 2px 1px #919191,
1px 3px 1px #919191;
}
Hover example (2D Rotate):
.hvr-rotate {
display: inline-block;
vertical-align: middle;
-webkit-transform: perspective(1px) translateZ(0);
transform: perspective(1px) translateZ(0);
box-shadow: 0 0 1px rgba(0, 0, 0, 0);
-webkit-transition-duration: 0.3s;
transition-duration: 0.3s;
}
Both repositories offer valuable CSS resources, with CSS-Inspiration providing a broader range of techniques and Hover focusing specifically on hover effects. CSS-Inspiration tends to showcase more complex and diverse examples, while Hover offers a streamlined collection of hover-specific styles. The choice between the two depends on the specific needs of the project and the desired range of CSS effects.
High-level guidelines for writing manageable, maintainable CSS
Pros of CSS-Guidelines
- Comprehensive guide for writing scalable and maintainable CSS
- Focuses on best practices and coding standards
- Provides clear explanations and rationale for each guideline
Cons of CSS-Guidelines
- Less visual examples compared to CSS-Inspiration
- May be overwhelming for beginners due to its depth
- Lacks interactive demos or live code examples
Code Comparison
CSS-Guidelines example:
.c-button {
display: inline-block;
padding: 1em 2em;
background-color: #4a90e2;
color: #fff;
}
CSS-Inspiration example:
.gradient-text {
background: linear-gradient(to right, #ff0000, #00ff00);
-webkit-background-clip: text;
color: transparent;
}
CSS-Guidelines focuses on structural and naming conventions, while CSS-Inspiration showcases creative visual effects. CSS-Guidelines provides a solid foundation for writing maintainable CSS, whereas CSS-Inspiration offers inspiration for unique designs and animations. CSS-Guidelines is better suited for teams and large projects, while CSS-Inspiration is ideal for designers and developers looking to enhance their creative CSS skills.
Convert designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual CopilotREADME
è¿éå¯ä»¥è®©ä½ 寻æ¾å°ä½¿ç¨æè æ¯å¦ä¹ CSS ççµæï¼ä»¥åç±»çå½¢å¼ï¼å±ç¤ºä¸å CSS å±æ§æè ä¸åç课é¢ä½¿ç¨ CSS æ¥è§£å³çåç§æ¹æ³ã
å¨çº¿é¢è§
å¸å±ï¼Layoutï¼
- å®ç°æ°´å¹³åç´å± ä¸æ便æ·çæ¹æ³
- åé£ç¿¼å¸å±
- grid å¸å±é å clip-path å®ç° GTA5 å°é¢
- flex å®ç°å£æ¯å¸å±
- å£æ¯å¸å±
- CSSå®ç°çå¸æµå¸å±ï¼column-countï¼
- CSS å®ç°çå¸æµå¸å±ï¼display: flexï¼
- CSSå®ç°çå¸æµå¸å±ï¼display: gridï¼
- 6ç§å®ç°å¤åçé«çæ¹æ³
- å¤æ¹æ¡å®ç°è·¨è¡æè·¨åå¸å±
- å¤ç§æ¹æ¡å®ç°ååç宽ï¼å ¶ä»å¤åèªéåºååå¸å±
- ä½¿ç¨ margin auto å®ç° flex ä¸ç align-self: flex-end
- ä½¿ç¨ margin auto å®ç° flex ä¸ç justify-content: space-between
é´å½±(box-shadowãdrop-shadow)
- Box-shadowå®ç°åç¯è¿åº¦æ¡å¨ç»
- 使ç¨box-shadow/æ¸åå®ç°å åè§
- Neon Effect 3D TEXT
- box-shadowå®ç°éè¹æ°ç¯æåææ
- ä½¿ç¨ box-shadow å®ç°åéæé®ç½©
- 线æ§æ¸å模æé¿é´å½±
- å侧æå½±
- ç«ä½æå½±
- 线æ§æ¸åé åé´å½±å®ç°æ¡çº¹ç«ä½é´å½±æ¡çº¹å
- ç«ä½æåé´å½±
- æµ®éé£æ ¼æé®
- box-shadowå®ç°èæ¯å¨ç» 2
- box-shadowå®ç°èæ¯å¨ç»
- åæ ç¾å®ç°æé³LOGO
- åæ ç¾å®ç°ååå¾å½¢
- åæ ç¾åå© inset shadow å®ç°IE LOGO
伪类/伪å ç´
- 伪å ç´ hover å®ç°çº¯ CSS æ¹å¼æ§å¶å¨ç»çæåä¸ææ¾
- 伪å ç´ target å®ç°çº¯ CSS æ¹å¼æ§å¶å¨ç»çæåä¸ææ¾
- 伪å ç´ checked å®ç°çº¯ CSS æ¹å¼æ§å¶å¨ç»çæåä¸ææ¾
- 伪å ç´ å®ç°è¾¹çæºè½å¤æ移å¨
- 伪å ç´ +borderå®ç°æ°æ³¡å¯¹è¯æ¡
- ä½¿ç¨ checked 伪类å®ç°çº¯ CSS Tab åæ¢
- ä½¿ç¨ target 伪类å®ç°çº¯ CSS Tab åæ¢
- placeholder-shown é å focus-within å®ç° input è¾å ¥äº¤äº
- focus-within switch tab
- 伪å ç´ focus-within 纯 CSS æ¹å¼å®ç°æéç»éç¹æ
- 伪å ç´ å®ç°æç¹ loading ææ
- 伪å ç´ é®ç½©å®ç°çº¿æ¡ loading ææ
- 使ç¨:not()伪类æ§å¶ç¹æ®è¾¹æ¡æ ·å¼
- 使ç¨:not()伪类å®ç°å¼¹çªèæ¯å ç´ æ¨¡ç³
滤é(fliter)
- å°çç©¿æ¢æ¾å¤§loadingå¨ç»
- å°çç©¿æ¢ææ
- ä½¿ç¨ filter:blur | filter:constrast çæç¹æ®èåææ
- ä½¿ç¨ filter:blur | filter:constrast çæç«ç°ææ2
- ä½¿ç¨ filter:blur | filter:constrast çæç«ç°ææ
- åæ ç¾çº¯CSSå®ç°å¹½çµå¨ç»
- ä½¿ç¨ hue-rotate å®ç°æ¸åèæ¯å¨ç»
- 滤éåæ··å模å¼æ··æç¹æ
- ä½¿ç¨ drop-shadow é å clip-path çæè§åé´å½±
- ä½¿ç¨ filter:blur çæ彩è²é´å½±
- åæ ç¾å®ç°æ»´æ°´ææ
- å©ç¨ filter:blur å¢å¼ºæåç 3D ææ
è¾¹æ¡
- æ´»ç¨ border-radius, å®ç°å çµå¨ç»
- å©ç¨ border-image å®ç°å¨æè¾¹æ¡
- æ´»ç¨ border-radius, åæ ç¾çº¿æ¡å¨ç»
- ä½¿ç¨ border-radius çåå模æ绳åä¸å
- border-radiusåæ¢å®ç°loadingææ
- æ´»ç¨ outline å·§å¦å®ç°å å·ç¬¦å·
- å·§ç¨ overflow åå®ç°è¾¹æ¡çº¿æ¡å¨ç»
- border-color åæ¢å®ç°æåè¾å ¥ææ
- æ´»ç¨ border-radius, å®ç°æ³¢æµªç¾åæ¯å¾
- æ´»ç¨ border-radius, å®ç°æ³¢æµªå¨ç»
èæ¯/æ¸å(linear-gradient/radial-gradient/conic-gradient)
- å©ç¨æ¸åå CSS Property å®ç° TV åªé³å¨ç»
- ä½¿ç¨ background-attachment å®ç°æ¯ç»çææ
- ä½¿ç¨ background-attachment å®ç°æ»å¨é´å½±
- background-clip å®ç°æµå æåææ
- è§åæ¸åçº¿æ¡ border ææ
- è§åæ¸åå®ç°å å½± border ææ
- è§åæ¸åå®ç°çº¯ CSS åç¯è¿åº¦å¾
- è§åæ¸åé åæ··å模å¼å®ç°ç«é ·å å½±ææ
- ä¸è¡ä»£ç éå¤è§åæ¸å代ç å®ç°é ·ç«å¾æ¡
- 线æ§æ¸åå®ç°ç®å¤´ç¬¦å·
- 线æ§æ¸åçº¿æ¡ border ææ
- 线æ§æ¸åå®ç°ç±»è¿·å®«å¾å½¢
- 线æ§æ¸åå®ç°å åè§
- 线æ§æ¸å模æè¿åº¦æ¡è¿å¨
- 线æ§æ¸åå®ç°æ»å¨è¿åº¦æ¡
- 线æ§æ¸åèæ¯å®ç°æ¡çº¹å
- 线æ§æ¸åå®ç°ä¸å线
- mask-image å®ç°å¾çåå¹»
- mask-image å®ç°æåçæ¸ç°
- mask-image å®ç°å¾ç转åºåæ¢
- 使ç¨å¤éèæ¯åæ ç¾å®ç°æ°æ³¡æé®ç¹å»ææ
- å¾åæ¸åå®ç°ä¼æ å¸æ³¢æµªé å
- å¾åæ¸åå®ç°èå°ç¯å èç¦ææ
- æ¸åå®ç°æ³¢æµªè¾¹æ¡
- æ¸åå®ç°æ³¢æµªä¸å线
- æ¸åå®ç°æ³¢æµªææ/波浪è¿åº¦æ¡
- å©ç¨ CSS @property æ¢å¯»æ¸åçæéææ
- å¤éå¾åæ¸åå®ç°ç¾å¦çèºæ¯èæ¯
æ··å模å¼ï¼mix-blend-mode/background-blend-mode)
- ä½¿ç¨ mix-blend-mode å®ç°å¾çä»»æé¢è²èµå¼ææ¯
- ä½¿ç¨ mix-blend-mode å®ç°æé³ LOGO
- mix-blend-mode å®ç° loading ææ
- å¾ççç±»æé³ LOGO æç©ææ
- mix-blend-mode MIX
- mix-blend-mode å®ç°é¢è²å å æ转å¨ç»
- ç±»æé³ LOGO æåæ éææ
- ä½¿ç¨ mix-blend-mode å®ç°å å½±æåææ
- CSS WAVE MOVE(æè³çæ°´æ³¢ææ)
- mix-blend-mode å å å¤éæ¸åèæ¯
- 使ç¨æ··å模å¼å å å®ç°æå波浪ææ
3D
- 3D çå¨ç»
- 3D æ°å计æ°å¨ç»
- 3D å®å®æ¶ç©ºç©¿æ¢ææ
- 3D ç«æ¹ä½è¿åº¦æ¡
- 3D ç«æ¹ä½æ»å¨ 404 ææ
- 3D å å½±åæ¢æåææ
- 3D æ é延伸è§è§å¨ç»
- 3D 线æ¡å¨ç»
- 3D 迷宫线æ¡ç¹æ
- 3D 绳å¨ç»
- 3D èºææ°åå¨ç»
- 3D æååºåºå¨ç»
- åå© translate3d\perspective å®ç° 3D è§å·®ææ
- åå© translate3d\perspective å®ç° 3D è§å·®ææ2
- ä½¿ç¨ translateZ å®ç°æ»å¨è§å·®
å¨ç»/è¿æ¸¡(transition/animation)
- åå©transition-delayå®ç°æé®borderå¨ç»ææ
- CSSå®ç°æ²çº¿è¿å¨
- å©ç¨ animation-delay å®ç°æåæ¸ç°ææ
- å©ç¨å¨ç»å»¶è¿å®ç°æ³¢æµªå¨ç»
- scale é å transfrom-origin ç²¾åæ§å¶å¨ç»æ¹å
- CSS å·§å¦æ§å¶å¨ç»è¡è¿
- æ£è´æ转ç¸æ¶å¨ç»
clip-path
- ä½¿ç¨ clip-path å border-image å®ç°åè§æ¸åè¾¹æ¡
- clip-path å®ç°è¾¹æ¡çº¿æ¡å¨ç» 2
- clip-path å®ç°è¾¹æ¡çº¿æ¡å¨ç»
- clip-path å®ç°å¾ççæ éèºæ¯é£æ ¼å¨ç»
- clip-path å®ç°æåæè£ææ
ææ¬ç±»
综å
- retinaå±ä¸ç1px线çå®ç°
- fieldset ä¸ legend å®ç°è¾¹æ¡åµå¥æå
- å©ç¨ resize å®ç°å¾çåæ¢é¢è§åè½
- æé»å符é¨å¨ç»
- chrome Tab åæ å®ç°
- çè§èºçº¿
- å为å çµå¨ç»
- å¤æå± å®¤å¾
- 纯CSSå®ç°360°饼å¾
- PURE CSS å®ç°é¼ æ è·é2
- PURE CSS å®ç°é¼ æ è·é3
- PURE CSS å®ç°é¼ æ è·é
- å©ç¨ box-reflect å®ç°èºæ¯å¾å½¢
- å©ç¨ box-reflect å®ç°å å½±æé®
- å©ç¨ box-reflect å®ç° 3D ç §çå¢åå½±ææ
- CSSæååè£ç§»å¨ç¹æ
- CSSæååè£ç¹æ
- CSSæåæ éææ
CSS-Doodle
- CSS-Doodle clip-path & drop-shadow å®ç°å¾æ¡èºæ¯
- CSS-Doodle å©ç¨ä¸åå¾å½¢çº¿æ¡å®ç°å¾æ¡èºæ¯ 2
- CSS-Doodle å©ç¨ä¸åå¾å½¢çº¿æ¡å®ç°å¾æ¡èºæ¯
- CSS-Doodle background + mask å®ç°ä¸è±çææ
- CSS-Doodle background + mask å®ç°æ¡çº¹èºæ¯èæ¯
- CSS-Doodle fish ð & seaweed ð
- CSS-Doodle spotlightð
- å¤æ¥åå¸å¤é³å¾ð
svg
- æ¯ä»å®ARæ«ç¦å¨ç»
- SVGç»å¶å¼§å½¢æå
- SVG æé® hover 线æ¡å¨ç»
- SVG é å drop-shadow å®ç°çº¿æ¡å å½±ææ
- å©ç¨ SVG feTurbulence 滤éå filter: blur å®ç°é¸¿è LOGO
- SVG feTurbulence 滤éå®ç°æ éæé®ç¹å»ææ
- SVG feTurbulence 滤éå®ç°äºå½©ææ
- SVG æå hover 线æ¡å¨ç» 2
- SVG æå hover 线æ¡å¨ç»
Top Related Projects
HTML/CSS drawing in the style of an 18th-century oil painting. Hand-coded entirely in HTML & CSS.
CSS loading animations with minimal effort!
CSS is powerful, you can do a lot of things without JS.
⚡️ A collection of tips to help take your CSS skills pro 🦾
A collection of CSS3 powered hover effects to be applied to links, buttons, logos, SVG, featured images and so on. Easily apply to your own elements, modify or just use for inspiration. Available in CSS, Sass, and LESS.
High-level guidelines for writing manageable, maintainable CSS
Convert designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual Copilot