.frame
  .small.plan-basic
    .title basic
    .price $5 <br> <span>per month</span>
    .lines 
      - 4.times do
        .line
  .small.plan-pro
    .title pro
    .price $10 <br> <span>per month</span>
    .lines 
      - 4.times do
        .line
  .small.plan-premium
   .title premium
   .price $20 <br> <span>per month</span>
   .lines 
      - 4.times do
        .line
  .big
    .data.data1
      .data-text
        .left 5 Users
        .right 100 Users
      .data-line
    .data.data2
      .data-text
        .left 20 GB
        .right 200 GB
      .data-line
    .data.data3
      .data-text
        .left 1 Project
        .right 50 Projects
      .data-line
View Compiled
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,600,700);
*,
*::before {
  transition: all 0.3s ease-in-out;
  background: #fff;
}
.frame {
  position: absolute;
  inset: calc(50% - 200px);
  border-radius: 2px;
  font-family: "Open Sans", Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-shadow: 1px 2px 10px 0px rgba(0, 0, 0, 0.05);
  background: #e9edef;
  color: #5e5e5e;
  display: flex;
  flex-wrap: wrap;
  place-content: center;
  padding-top: 10px;
  gap: 30px 10px;
}
.small {
  height: 160px;
  width: 110px;
  box-shadow: 2px 2px 4px 0 rgb(0 0 0 / 10%);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  .title {
    height: 36px;
    background: #7dd0ed;
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: 14px;
    line-height: 14px;
    text-transform: capitalize;
  }
  .price {
    margin: 10px 0 17px 0;
    font-size: 30px;
    font-weight: 700;
    display: grid;
    place-items: center;
    span {
      font-size: 12px;
      font-weight: 400;
      margin: -8px 0 -2px;
    }
  }
  .lines {
    .line {
      width: 69px;
      height: 3px;
      background: #e4e4e4;
      margin: 7px auto;
      border-radius: 10px;
      &:nth-of-type(2) {
        width: 59px;
      }
      &:nth-of-type(3) {
        width: 66px;
      }
      &:last-of-type {
        width: 46px;
      }
    }
  }
  &:hover {
    transform: scale(1.1);
    box-shadow: 4px 4px 8px 0 rgb(0 0 0 / 10%);
    .title {
      background: #27a6d2;
    }
    .price {
      color: #27a6d2;
    }
    &.plan-basic ~ .big .data .data-line::before {
      width: 5%;
    }
    &.plan-pro ~ .big {
      .data1 .data-line::before {
        width: 30%;
      }
      .data2 .data-line::before {
        width: 70%;
      }
      .data3 .data-line::before {
        width: 50%;
      }
    }
    &.plan-premium ~ .big .data .data-line::before {
      width: 100%;
    }
  }
}
.big {
  width: 380px;
  height: 160px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 15px;
  box-sizing: border-box;
  box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, 0.1);
  .data {
    &-text {
      display: flex;
      justify-content: space-between;
      font-size: 12px;
    }
    &-line {
      margin-top: 5px;
      height: 10px;
      background: #e9edef;
      border-radius: 5px;
      position: relative;
      &::before {
        position: absolute;
        content: "";
        height: 100%;
        width: 0;
        border-radius: inherit;
        background: #7dd0ed;
        transform-origin: center left;
      }
    }
  }
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.