Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!-- svg masks -->
<svg id="first_clipper_l">
		<defs>
			<clipPath id="firstClip_l" clipPathUnits="objectBoundingBox">
				<polygon points="1,0.15 0.85,0 0,0.15 0,0.85 0.15,1 1,0.85" />
			</clipPath>
		</defs>
	</svg>
<!-- tablet-->
<svg id="first_clipper_m">
		<defs>
			<clipPath id="firstClip_m" clipPathUnits="objectBoundingBox">
				<polygon points="1,0.1 0.9,0 0,0.1 0,0.9 0.1,1 1,0.9" />
			</clipPath>
		</defs>
	</svg>
<!-- mobile-->
<svg id="first_clipper_s">
		<defs>
			<clipPath id="firstClip_s" clipPathUnits="objectBoundingBox">
				<polygon points="1,0.025 0.975,0 0,0.025 0,0.975 0.025,1 1,0.975" />
			</clipPath>
			<mask id="firstClip_s" clipPathUnits="objectBoundingBox">
				<polygon points="1,0.025 0.975,0 0,0.025 0,0.975 0.025,1 1,0.975" />
			</mask>
		</defs>
	</svg>

<svg id="second_clipper_l">
		<defs>
			<clipPath id="secondClip_l" clipPathUnits="objectBoundingBox">
				<polygon points="1,0.15 0.15,0 0,0.15 0,0.85 0.85,1 1,0.85" />
			</clipPath>
		</defs>
	</svg>
<!-- tablet-->
<svg id="second_clipper_m">
		<defs>
			<clipPath id="secondClip_m" clipPathUnits="objectBoundingBox">
				<polygon points="1,0.1 0.1,0 0,0.1 0,0.9 0.9,1 1,0.9" />
			</clipPath>
		</defs>
	</svg>
<!-- mobile-->
<svg id="second_clipper_s" height="0" width="0">
		<defs>
			<clipPath id="secondClip_s" clipPathUnits="objectBoundingBox">
				<polygon points="1,0.025 0.025,0 0,0.025 0,0.975 0.975,1 1,0.975" />
			</clipPath>
			<mask id="secondClip_s" maskUnits="objectBoundingBox">
				<polygon points="1,0.025 0.025,0 0,0.025 0,0.975 0.975,1 1,0.975" />
			</mask>
		</defs>
	</svg>
<!-- container with cards -->
<div id="prices" class="grey">
  <div class="container">
    <div class="row">
      <div class="col s12 info">
        <h1 class="uppercase arvoBold white-text"> Blah-blah-blah</h1>
        <p>Here is the point, where I stuck: on desktop in modern browsers blocks below has been masked and shows as needed, but in mobile browsers like a iOS Safari/iOS chrome shows only first block, all other are invisible</p>
      </div>
    </div>
  </div>
 
  <div class="container container-wide">
    <div class="row">
      <div id="card1" class="prices cards z-depth-0 blue-grey darken-1 col s12 m3 l3 flex-column">
        <p class="uppercase arvoBold white-text header">
          Very very very interesing header </p>
        <hr class="blue-hr">
        <div class="circle circle-with-border flex-row"><img src="http://lorempixel.com/800/800" class="responsive-img">
        </div>
        <p class="clearReg grey-text text-lighten-1 old_price">
          some strike-thru text</p>
        <p class="arvoBold amber-text text-lighten-2 discount">
          alternative text</p>
        <hr class="blue-hr">
        <div class="cards-action">
          <a href="#how_it_works">
            <p class="white-text clearReg more">more</p>
          </a>
          <a href="#extended_form">
            <p class="amber-text text-lighten-1 clearReg to_form">action</p>
          </a>
        </div>
      </div>
      <div id="card2" class="col s12 m3 l3 prices cards z-depth-0 blue-grey darken-2 flex-column">
        <p class="uppercase arvoBold white-text header">
          another interesting text</p>
        <hr class="blue-hr">
        <div class="circle circle-with-border flex-row">
          <img src="http://lorempixel.com/600/600" class="responsive-img">
        </div>
        <p class="clearReg grey-text text-lighten-1 old_price">
          another strike text</p>
        <p class="arvoBold amber-text text-lighten-2 discount">
          another alternative</p>
        <hr class="blue-hr">
        <div class="cards-action">
          <a href="#how_it_works">
            <p class="white-text clearReg more">more</p>
          </a>
          <a href="#extended_form">
            <p class="amber-text text-lighten-1 clearReg to_form">action</p>
          </a>
        </div>
        <use xlink:href="firstClip_2ss"/>
      </div>
      <div id="card3" class="col s12 m3 l3 prices cards z-depth-0 blue-grey darken-3 flex-column">
        <p class="uppercase arvoBold white-text header">
          one more interesting text</p>
        <hr class="blue-hr">
        <div class="circle circle-with-border flex-row">
          <img src="http://lorempixel.com/400/400" class="responsive-img">
        </div>
        <p class="clearReg grey-text text-lighten-1 old_price">
          one more strike text</p>
        <p class="arvoBold amber-text text-lighten-2 discount">
          one more alternative</p>
        <hr class="blue-hr">
        <div class="cards-action">
          <a href="#how_it_works">
            <p class="white-text clearReg more">more</p>
          </a>
          <a href="#extended_form">
            <p class="amber-text text-lighten-1 clearReg to_form">text</p>
          </a>
        </div>
      </div>
      <div id="card4" class="col s12 m3 l3 prices cards z-depth-0 blue-grey darken-4 flex-column">
        <p class="uppercase arvoBold white-text header">
          last one interesting header</p>
        <hr class="blue-hr">
        <div class="circle circle-with-border flex-row">
          <img src="http://lorempixel.com/200/200" class="responsive-img">
        </div>
        <p class="clearReg grey-text text-lighten-1 old_price">
          last strike text</p>
        <p class="arvoBold amber-text text-lighten-2 discount">
          last alternative text</p>
        <hr class="blue-hr">
        <div class="cards-action">
          <a href="#how_it_works">
            <p class="white-text clearReg more">more</p>
          </a>
          <a href="#extended_form">
            <p class="amber-text text-lighten-1 clearReg to_form">action</p>
          </a>
        </div>
      </div>
    </div>
  </div>
</div>
              
            
!

CSS

              
                /* used classes for standard apperance of cards	 */

.underline {
			text-decoration: underline;
		}

		hr.white-hr {
			border-top: 1px solid #fff;
			width: 100%;
		}

		hr.blue-hr {
			border-top: 1px solid #1976D2;
			width: 100%;
		}

		.uppercase {
			text-transform: uppercase;
		}
		#prices {
			margin-top: 0;
			padding-top: 5%;
			overflow: hidden;
		}

		#prices .prices {
			width: 24.5%;
			margin: 0 0.25%;
			overflow: hidden;
			position: relative;
        background: url('http://safety-pool.ru/wp-content/themes/clean-pool/assets/images/backgrounds/back1_blue_grey2.png');
        background-repeat: repeat;
        background-size: 200px;
		}

		#prices .filter {
			height: 100%;
			width: 100%;
			position: absolute;
			background-color: rgba(13, 71, 161, .25);
			background-repeat: repeat;
			background-size: 375px;
			z-index: 100;
			opacity: .25;
		}

		#prices .circle-with-border {
			z-index: 50;
			height: 180px;
			width: 180px;
			vertical-align: middle;
			border-radius: 50%;
			background-color: #fff;
			border: 3px solid #1976D2;
			overflow: hidden;
		}

		#prices .circle-with-border img {
			z-index: 50;
			height: 100%;
			width: 100%;
			margin: 0;
		}

		#prices .old_price {
			z-index: 50;
			font-size: 1.25em;
			text-decoration: line-through;
			margin: 10px auto;
		}

		#prices .discount {
			z-index: 50;
			font-size: 1.5em;
			margin: 10px auto;
		}

		#prices .cards .cards-action {
			z-index: 50;
			padding: 0;
			border-top: none;
		}

		#prices .cards .cards-action a:not(.btn):not(.btn-large):not(.btn-floating) {
			z-index: 50;
			margin-right: 0;
			width: 50%;
			height: 30px;
			margin: 15px 0;
			line-height: normal;
			float: left;
		}

		#prices .header {
			z-index: 50;
			font-size: 1.25em;
			letter-spacing: 1px;
		}

		#prices .more {
			z-index: 50;
			font-size: 1.25em;
			margin: 0;
			height: 30px;
			margin-right: 10px;
			line-height: normal;
			border-bottom: 1px dashed #fff;
		}

		#prices .to_form {
			z-index: 50;
			font-size: 1.25em;
			margin: 0;
			margin-left: 10px;
			height: 30px;
			line-height: normal;
			border-bottom: 1px dashed #ffb74d;
		}
/* svg masking */
		#first_clipper_s,
		#first_clipper_m,
		#first_clipper_l,
		#second_clipper_s,
		#second_clipper_m,
		#second_clipper_l {
  position: absolute;
  transform: translateZ(0) !important;
		}

		@media all and (min-width: 0) and (max-width: 600px) {
			#prices {
        mask: url(#secondClip_s);
				clip-path: url(#secondClip_s);        
				-apple-: url(#secondClip_s);    
				-khtml-: url(#secondClip_s);
				-webkit-clip-path: url(#secondClip_s);
				-moz-clip-path: url(#secondClip_s);
				-o-clip-path: url(#secondClip_s);
        padding-bottom: 7.5%;
        padding-top: 7.5%;
        height: auto;
			}
			#prices #card1  {      
        mask: url(#firstClip_s);
				clip-path: url(#firstClip_s);        
				-apple-: url(#firstClip_s);    
				-khtml-: url(#firstClip_s);
				-webkit-clip-path: url(#firstClip_s);
				-moz-clip-path: url(#firstClip_s);
				-o-clip-path: url(#firstClip_s);
        width: 100%;        
        transform: translateZ(0) !important;
			}	
			#prices #card2  {      
        mask: url(#firstClip_s);
				clip-path: url(#firstClip_s);        
				-apple-: url(#firstClip_s);    
				-khtml-: url(#firstClip_s);
				-webkit-clip-path: url(#firstClip_s);
				-moz-clip-path: url(#firstClip_s);
				-o-clip-path: url(#firstClip_s);
        width: 100%;
        transform: translateZ(0) !important;
			}	
			#prices #card3  {      
        mask: url(#firstClip_s);
				clip-path: url(#firstClip_s);        
				-apple-: url(#firstClip_s);    
				-khtml-: url(#firstClip_s);
				-webkit-clip-path: url(#firstClip_s);
				-moz-clip-path: url(#firstClip_s);
				-o-clip-path: url(#firstClip_s);
        width: 100%;
        transform: translateZ(0) !important;
			}	
			#prices #card4  {
        mask: url(#firstClip_s);
				clip-path: url(#firstClip_s);        
				-apple-: url(#firstClip_s);    
				-khtml-: url(#firstClip_s);
				-webkit-clip-path: url(#firstClip_s);
				-moz-clip-path: url(#firstClip_s);
				-o-clip-path: url(#firstClip_s);
        width: 100%;
        transform: translateZ(0) !important;
			}
		}

		@media all and (min-width: 601px) and (max-width: 991px) {
			#prices {
				clip-path: url(#secondClip_m);        
				-apple-: url(#secondClip_m);    
				-khtml-: url(#secondClip_m);
				-webkit-clip-path: url(#secondClip_m);
				-moz-clip-path: url(#secondClip_m);
				-o-clip-path: url(#secondClip_m);
        padding-bottom: 7.5%;
			}
			
			#prices #card1  {
        position: relative;
				mask: url(#firstClip_1ss);
				clip-path: url(#firstClip_1s);
        -apple-: url(#firstClip_1s);
        -khtml-: url(#firstClip_1s);
				-webkit-clip-path: url(#firstClip_1s);
				-moz-clip-path: url(#firstClip_1s);
				-o-clip-path: url(#firstClip_1s);
        width: 48%;
        margin: 1%;
			}	
			#prices #card2  {
        position: relative;
				mask: url(#firstClip_2ss);
				clip-path: url(#firstClip_2s);
        -apple-: url(#firstClip_2s);
        -khtml-: url(#firstClip_2s);
				-webkit-clip-path: url(#firstClip_2s);
				-moz-clip-path: url(#firstClip_2s);
				-o-clip-path: url(#firstClip_2s);
        width: 48%;
        margin: 1%;
			}	
			#prices #card3  {
        position: relative;
				mask: url(#firstClip_3ss);
				clip-path: url(#firstClip_3s);
        -apple-: url(#firstClip_3s);
        -khtml-: url(#firstClip_3s);
				-webkit-clip-path: url(#firstClip_3s);
				-moz-clip-path: url(#firstClip_3s);
				-o-clip-path: url(#firstClip_3s);
        width: 48%;
        margin: 1%;
			}	
			#prices #card4  {
        position: relative;
				mask: url(#firstClip_4ss);
				clip-path: url(#firstClip_4s);
        -apple-: url(#firstClip_4s);
        -khtml-: url(#firstClip_4s);
				-webkit-clip-path: url(#firstClip_4s);
				-moz-clip-path: url(#firstClip_4s);
				-o-clip-path: url(#firstClip_4s);
        width: 48%;
        margin: 1%;
			}
		}

		@media all and (min-width: 992px) {
			#prices {
				clip-path: url(#secondClip_l);        
				-apple-: url(#secondClip_l);    
				-khtml-: url(#secondClip_l);
				-webkit-clip-path: url(#secondClip_l);
				-moz-clip-path: url(#secondClip_l);
				-o-clip-path: url(#secondClip_l);
        padding-bottom: 7.5%;
			}
			#prices #card1, #prices #card3  {
				clip-path: url(#firstClip_s);        
				-apple-: url(#firstClip_s);    
				-khtml-: url(#firstClip_s);
				-webkit-clip-path: url(#firstClip_s);
				-moz-clip-path: url(#firstClip_s);
				-o-clip-path: url(#firstClip_s);
				min-height: 500px;
			}
			#prices #card2,
      #prices #card4 {
				clip-path: url(#secondClip_s);        
				-apple-: url(#secondClip_s);    
				-khtml-: url(#secondClip_s);
				-webkit-clip-path: url(#secondClip_s);
				-moz-clip-path: url(#secondClip_s);
				-o-clip-path: url(#secondClip_s);
				min-height: 500px;
			}
		}
/* @supports (-webkit-appearance:none) {
    #prices .cards {
        -webkit-transform: none !important;
    } */
}
              
            
!

JS

              
                
              
            
!
999px

Console