w3tweaks.com
  • Effects
    • Scroll Effects
    • Text Effects
    • Shadow
  • Essentials
    • Arrows
    • Buttons
    • Background Patterns
    • Border Examples
    • Cards
    • Color Palettes
    • Dividers
    • Link styles
    • Loaders
    • Modal Windows
    • Notifications
    • Progress bar
    • Quote styles
    • Spinner
    • Tooltips
  • Media
    • Calendars
    • Carousels
    • Clocks
    • Gallery
    • Music Players
    • Sliders
    • Slideshows
    • Tables
    • Thumbnails
  • Navigation
  • Inputs
    • Range Sliders
    • Checkboxes
    • Toggle Switches
  • Script
    • Angularjs
    • Backbone.js
    • bootstrap
    • jQuery
    • ReactJs
    • JavaScript
    • Syntax Highlighters
    • tryit editor
    • PHP
  • API’s
    • Facebook
    • Google
    • Indeed
    • Twitter
    • YouTube
  • Tools
w3tweaks.com
Home Effects

CSS in CSS with a lot of C and S

October 12, 2020
in Effects

Giulia Cardieri crafts a cascade of Cs and Ss with SCSS. Phew!

See the Pen CSS in CSS with a lot of C and S by Giulia Cardieri (@giuliacardieri) on CodePen.

You might also like

24 Free CSS Scroll Effect Examples

36 Free CSS 3D Text Effects

13 Beautiful CSS Button Hover Effects for Your Website

13 Free Blob Effects Using CSS3

Box Shadow Patterns

Masked & Skewed

Created on April 8, 2020 Updated on April 8, 2020. A Pen by Giulia Cardieri on CodePen. License.

Download

index.html

<div class="container">
  <div class="c">
  </div>
  <div class="s">
    <div class="c">
    </div>
    <div class="c">
    </div>
  </div>
  <div class="s">
    <div class="c">
    </div>
    <div class="c">
    </div>
  </div>
</div>
$color-main-1: #9C2855;
$color-main-2: #E14282;
$color-light: #FADCE4;
$color-darker: #7F2044;
$color-darkest: #591630;

body {
  background-color: lightPink;
  margin: 0;
  padding: 0;
}

.container {
  align-items: center;
  display: flex;
  height: 100vh;
  justify-content: center;
}

.c {
  border-left: 20px solid $color-darkest;
  box-shadow: -10px 0px 0 5px $color-darker, -20px 0px 0 6px $color-main-2, -30px 0px 0 7px rgba($color-main-2, 0.6);
  border-radius: 100% 50% 50% 100% / 100%;
  height: 200px;
  width: 180px; 
}

.s {
  display: flex;
  flex-direction: column;
}

.s:not(:last-of-type) {
  margin-right: 75px;
}

.s > .c {
  height: 100px;
  width: 100px;
}

.s > .c:last-of-type {
  transform: rotate(185deg) translateX(5px) translateY(-2px);
}

@media (max-width: 768px) {
  .c {
    height: 100px;
    width: 90px; 
  }
  
  .s:not(:last-of-type) {
    margin: 0 75px 0 25px;
  }
  
  .s > .c {
    height: 50px;
    width: 50px;
  }
}

@media (max-width: 500px) {
  .container {
    transform: scale(0.8);
  }
}
body {
  background-color: lightPink;
  margin: 0;
  padding: 0;
}

.container {
  align-items: center;
  display: flex;
  height: 100vh;
  justify-content: center;
}

.c {
  border-left: 20px solid #591630;
  box-shadow: -10px 0px 0 5px #7F2044, -20px 0px 0 6px #E14282, -30px 0px 0 7px rgba(225, 66, 130, 0.6);
  border-radius: 100% 50% 50% 100% / 100%;
  height: 200px;
  width: 180px;
}

.s {
  display: flex;
  flex-direction: column;
}

.s:not(:last-of-type) {
  margin-right: 75px;
}

.s > .c {
  height: 100px;
  width: 100px;
}

.s > .c:last-of-type {
  transform: rotate(185deg) translateX(5px) translateY(-2px);
}

@media (max-width: 768px) {
  .c {
    height: 100px;
    width: 90px;
  }

  .s:not(:last-of-type) {
    margin: 0 75px 0 25px;
  }

  .s > .c {
    height: 50px;
    width: 50px;
  }
}
@media (max-width: 500px) {
  .container {
    transform: scale(0.8);
  }
}

Tags: text effects
Previous Post

CSS Shapes Forest Collection Spring Summer 2020

Next Post

Chat bubble smoothly morphs into a “close” X

Related Stories

CSS Scroll Effects
Effects

24 Free CSS Scroll Effect Examples

November 23, 2022
Collection of Free CSS 3D Text Effects
Effects

36 Free CSS 3D Text Effects

November 11, 2022
Beautiful CSS Button Hover Effects
Effects

13 Beautiful CSS Button Hover Effects for Your Website

November 5, 2022
Free Blob Effects Using CSS3
Effects

13 Free Blob Effects Using CSS3

October 31, 2022
Box Shadow Patterns
Effects

Box Shadow Patterns

October 1, 2020
Masked & Skewed
Effects

Masked & Skewed

September 30, 2020
Fit Text with CSS Variables
Effects

Fit Text with CSS Variables

September 29, 2020
Buttons popper
Effects

Buttons popper

September 21, 2020

Discussion about this post

Follow Us

Popular Posts

100 Creative CSS Cards

44 Free Multi step HTML forms

13 Free HTML & CSS Dashboard Template Designs

49 CSS Tables

20 HTML & CSS pricing tables

14 Best CSS Dark Mode

11 CSS Shopping Cart UI/UX

42 Cool CSS Avatars For Better UI

55 Useful handpicked CSS Buttons with examples and demos

89 Best CSS Toggle Switches

w3tweaks

We bring you the best frontend collections that will fix perfect for news, magazine, personal blog, etc. Check our landing page for details.

  • Effects
    • Scroll Effects
    • Text Effects
    • Shadow
  • Essentials
    • Arrows
    • Buttons
    • Background Patterns
    • Border Examples
    • Cards
    • Color Palettes
    • Dividers
    • Link styles
    • Loaders
    • Modal Windows
    • Notifications
    • Progress bar
    • Quote styles
    • Spinner
    • Tooltips
  • Media
    • Calendars
    • Carousels
    • Clocks
    • Gallery
    • Music Players
    • Sliders
    • Slideshows
    • Tables
    • Thumbnails
  • Navigation
  • Inputs
    • Range Sliders
    • Checkboxes
    • Toggle Switches
  • Script
    • Angularjs
    • Backbone.js
    • bootstrap
    • jQuery
    • ReactJs
    • JavaScript
    • Syntax Highlighters
    • tryit editor
    • PHP
  • API’s
    • Facebook
    • Google
    • Indeed
    • Twitter
    • YouTube
  • Tools