123

Pen Settings

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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              
<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">

	<title>my</title>
  <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
   <link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/css/bootstrap.min.css" rel="stylesheet">
  
	<script src="libraries/p5.js"></script>
	<script src="libraries/p5.dom.js"></script>
	<script src="libraries/p5.sound.js"></script>
	<script src="sketch.js"></script>
 <link rel="stylesheet" href="style.css">
	<style>
		body {
			margin:0;
			padding:0;
			overflow: hidden;
		}
		img {
			width: 300px;

		}
		canvas {
			margin:auto;
		}

		header {
			position: absolute;
			top: 50%;
			left: 50%;
			transform: translate(-50%, -50%);
		}
	</style>
</head>
<body>
  <section>
      <div class="container-fluid">
        <div class="container">
          <div class="row">
            <div class="col-sm-4" id="col-sm-4">
              <div class="card text-center">
                <div class="title">
                  <i class="fa fa-paper-plane" aria-hidden="true"></i>
                  <h2>Basic</h2>
                </div>
                <div class="price">
                  <h4><sup>$</sup>25</h4>
                </div>
               <div class="option">
                 <ul>
  <li><i class="fa fa-check" aria-hidden="true"></i>10 GB Space</li>

  <li><i class="fa fa-check" aria-hidden="true"></i>3 Domain Names</li>
  <li><i class="fa fa-check" aria-hidden="true"></i>20 Email Address</li>
  <li><i class="fa fa-times" aria-hidden="true"></i>Live Support</li>
                 </ul>
                   </div>
                <a href="" class="a">Sign-UP-Now</a>
              </div>
            </div>

            <!-- second Pricing Table -->

            <div class="col-sm-4" id="col-sm-4">
              <div class="card text-center">
                <div class="title">
                  <i class="fa fa-paper-plane" aria-hidden="true"></i>
                  <h2>Standard</h2>
                </div>
                <div class="price">
                  <h4><sup>$</sup>25</h4>
                </div>
               <div class="option">
                 <ul>
  <li><i class="fa fa-check" aria-hidden="true"></i>10 GB Space</li>

  <li><i class="fa fa-check" aria-hidden="true"></i>3 Domain Names</li>
  <li><i class="fa fa-check" aria-hidden="true"></i>20 Email Address</li>
  <li><i class="fa fa-times" aria-hidden="true"></i>Live Support</li>
                 </ul>
                   </div>
                <a href="" class="a">Sign-UP-Now</a>
              </div>
            </div>

            <!-- second Pricing Table end coding -->

            <!--third Pricing Table-->
            <div class="col-sm-4" id="col-sm-4">
              <div class="card text-center">
                <div class="title">
                  <i class="fa fa-paper-plane" aria-hidden="true"></i>
                  <h2>Premium</h2>
                </div>
                <div class="price">
                  <h4><sup>$</sup>25</h4>
                </div>
               <div class="option">
                 <ul>
  <li><i class="fa fa-check" aria-hidden="true"></i>10 GB Space</li>

  <li><i class="fa fa-check" aria-hidden="true"></i>3 Domain Names</li>
  <li><i class="fa fa-check" aria-hidden="true"></i>20 Email Address</li>
  <li><i class="fa fa-times" aria-hidden="true"></i>Live Support</li>
                 </ul>
                   </div>
                <a href="" class="a">Sign-UP-Now</a>
              </div>
            </div>
            <!-- end third coding -->
          </div>
        </div>
      </div>
    </section>

</body>
</html>

            
          
!
            
              @import url('https://fonts.googleapis.com/css?family=Roboto:300');
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif !important;
}
section {
  width:100%;
  height:100vh;
  box-sizing:border-box;
  padding:140px 0;
}
.card
{
  position: relative;
  max-width:300px;
  height:auto;
  background:;
  border-radius:15px;
  margin:0 auto;
  padding:40px 20px;
  box-shadow: 0 10px 15px, rgba(0,0,0,.4);
  transition:.5s;
}
.card
 {
  background:linear-gradient(-45deg, #f403d1, #64b5f6);

}
.card:before {
  content:'';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: rgba(255,255,255,.1);
  /* z-index: 1;
  transform:skewY(-5deg) scale(1.5); */
}
.title .fa {
  color:rgb(234, 25, 100);
  font-size:60px;
  width: 100px;
  height: 100px;
  border-radius:50px;
  position: relative;
  background:#000;
  line-height:100px;
  text-align:center;
  box-shadow:0 10px 10px rgba(0,0,0,.5);
}
.title h2 {
  position: relative;
  margin:20px 0 0;
  padding:0;
  color:#fff;
  font-size:28px;
  z-index:2;
}
.price
{
  position: relative;
  z-index: 2;
}
.price h4 {
  margin:0;
  padding:20px 0;
  color:#fff;
  font-size:60px;
}
.option
{
  position: relative;
  z-index: 2;
}
.option ul {
  margin:0;
  padding:0;
}
.option ul li {
  margin: 0;
  padding: 0;
  list-style:none;
  color:#fff;
  font-size:16px;
}
.a {
  position: relative;
  z-index: 2;
  background:#fff;
  color:#000;
  font-size:16px;
  font-weight:bold;
  line-height:40px;
  width: 150px;
  height: 40px;
  display:block;
  text-align:center;
  margin:20px auto 0;

  border-radius:50px;
  box-shadow:0 10px 10px rgba(0,0,0,.4);
}
.col-sm-4 {
  transition:all 0.4s;
}
.col-sm-4:hover {
  transform:scale(1.05);
}
            
          
!
            
              var canvas;
let bubble;
let bubble2;
let bubble3;
let bubble4;
function windowResized() {
	resizeCanvas(displayWidth, displayHeight);
}
function setup() {
canvas = createCanvas(displayWidth, displayHeight);
canvas.position(0, 0);
canvas.style('z-index', '-1');
}

var MAX_PARTICLES = 170;
//var COLORS = [ '#31CFAD', '#ADDF8C', '#FF6500', '#FF0063', '#520042', '#DAF7A6' ];
var COLORS = [ '#69D2E7', '#A7DBD8', '#E0E4CC', '#F38630', '#FA6900', '#FF4E50', '#F9D423' ];
//var COLORS = [ '#581845', '#900C3F', '#C70039', '#C70039', '#FFC300', '#DAF7A6' ];
//var COLORS = [ 'rgba(49,207,173,.7)', 'rgba(173,223,140,.7)', 'rgba(255,101,0,.7)', 'rgba(255,0,99,.7)', 'rgba(82,0,66,.7)' ];

//ARRAYS
var particles = [];
var pool = [];

//VARIABLES
var wander1 = 0.5;
var wander2 = 2.0;
var drag1 = .9;
var drag2 = .99;
var force1 = 2;
var force2 = 8;
var theta1 = -0.5;
var theta2 = 0.5;
var size1 = 5;
var size2 = 180;
var sizeScalar = 0.97;


// ----------------------------------------
// Particle Functions
// ----------------------------------------

function Particle(x,y,size) {
    this.alive = true;
    this.size = size || 10;
    this.wander = 0.15;
    this.theta = random( TWO_PI );
    this.drag = 0.92;
    this.color = '#fff';
  	this.location = createVector(x || 0.0, y || 0.0);
	this.velocity = createVector(0.0, 0.0);
}
Particle.prototype.move = function() {
    this.location.add(this.velocity);
  	this.velocity.mult(this.drag);
    this.theta += random( theta1, theta2 ) * this.wander;
    this.velocity.x += sin( this.theta ) * 0.1;
    this.velocity.y += cos( this.theta ) * 0.1;
    this.size *= sizeScalar;
    this.alive = this.size > 0.5;
}
Particle.prototype.show = function() {
  //arc( this.location.x, this.location.y, this.size, 0, TWO_PI );
  fill( this.color );
  noStroke();
  ellipse(this.location.x,this.location.y, this.size, this.size);
}

function spawn(x,y) {
    var particle, theta, force;
    if ( particles.length >= MAX_PARTICLES ) {
        pool.push( particles.shift() );
    }
    particle = new Particle(mouseX, mouseY, random(size1,size2));
    particle.wander = random( wander1, wander2 );
    particle.color = random( COLORS );
    particle.drag = random( drag1, drag2 );
    theta = random( TWO_PI );
    force = random( force1, force2 );
  	particle.velocity.x = sin( theta ) * force;
    particle.velocity.y = cos( theta ) * force;
    particles.push( particle );
}
function update() {
    var i, particle;
    for ( i = particles.length - 1; i >= 0; i-- ) {
        particle = particles[i];
        if ( particle.alive ) {
          particle.move();
        } else {
          pool.push( particles.splice( i, 1 )[0] );
        }
    }
}
function moved() {
    var particle, max, i;
    max = random( 1, 4 );
    for ( i = 0; i < max; i++ ) {
      spawn( mouseX, mouseY );
    }
}


// ----------------------------------------
// Runtime
// ----------------------------------------
function draw() {
	update();
    drawingContext.globalCompositeOperation = 'normal';
  	background(0);
 	drawingContext.globalCompositeOperation = 'lighter';
	for (var i = particles.length - 1; i >= 0; i--) {
    	particles[i].show();
    }
}

function mouseMoved() {
   moved();
}

function touchMoved() {
    moved();
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console