//- Download the Free scene from https://www.mockupcloud.com/free/kitchen-ready-header-free-scene

.text-container
  h1.animated.slow.fadeInDown Stand Out
  h5.animated.slow.fadeInUp HERO / HEADER IMAGE
  a.animated.slow.fadeIn.link-btn(href="https://www.mockupcloud.com/free/kitchen-ready-header-free-scene") Free Download

#scene.main-bg(style='background: linear-gradient(to bottom left, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 15%, rgba(0, 0, 0, 0.25) 65%, rgba(0, 0, 0, 0.4) 100%), url(https://i.ibb.co/rcdHbJY/background.jpg) no-repeat center center fixed;')
  div.obj-cont(v-if='items!=null' v-for='item in items' :id="`${item.name}`" :class="`${item.name}-cont`" :style="{ 'left': item.left.toString() + '%', 'top': item.top.toString() + 'em' }")
    img.animated.slow.fadeIn.shadow.obj(:src="`${item.links[0].link}`" :class="[item.name, item.animation]" :style="{ 'width': item.width.toString() + '%', 'z-index': item.zIndex }")
    img.animated.slow.fadeIn.no-shadow.obj(:src="`${item.links[1].link}`" :class="[item.name, item.animation]" :style="{ 'width': item.width.toString() + '%', 'z-index': item.zIndex.toString() }")
View Compiled
$brown: #95764F
$orange: #CD7C10

body
  font-family: 'Montserrat', sans-serif

.main-bg
  width: 100%
  height: auto
  display: block
  min-height: 100%
  -webkit-background-size: contain !important
  -moz-background-size: contain !important
  -o-background-size: contain!important
  background-size: contain !important

  width: 100%
  height: auto

  position: fixed
  top: 0
  left: 0

.obj-cont
  position: relative
  
.obj
  border: 3px solid transparent
  // width: 100%

.resizing
  border: 3px solid transparentize(#000, 0.7)
  z-index: 9

.shadow
  mix-blend-mode: multiply

.no-shadow

.obj
  position: absolute
  
.ui-draggable:hover
  cursor: pointer
  
.ui-draggable-dragging:active
  cursor: move

#mydiv
  position: absolute
  
  
.resizable
  // width: 100px
  height: 100%
  position: absolute
  // top: 100px
  // left: 100px

  .resizers
    width: 100%
    height: 100%
    border: 2px solid transparentize(#000, 0.8)
    box-sizing: border-box

    .resizer
      width: 10px
      height: 10px
      border-radius: 50%

      /*magic to turn square into circle
      background: white
      border: 2px solid transparentize(#000, 0.4)
      position: absolute

      &.top-left
        left: -5px
        top: -5px
        cursor: nwse-resize

        /*resizer cursor

      &.top-right
        right: -5px
        top: -5px
        cursor: nesw-resize

      &.bottom-left
        left: -5px
        bottom: -5px
        cursor: nesw-resize

      &.bottom-right
        right: -5px
        bottom: -5px
        cursor: nwse-resize
        
.text-container
  bottom: 0
  height: 20em
  left: 0
  margin: auto
  position: absolute
  top: 0
  right: 0
  width: 40em
  z-index: 9
  text-align: center
h1
  font-size: 6em
  font-weight: bold
  margin: 0
h5
  font-size: 1.25em
  letter-spacing: 4px
  margin: .5em 0 2em 0
  font-weight: bold
  
h1,
h5
  color: $brown
  
.link-btn
  background: $orange
  color: white
  text-decoration: none
  text-transform: uppercase
  letter-spacing: 3px
  font-size: 0.8em
  padding: 1em 2em
  font-weight: bold
  &:hover
    background: lighten($orange, 3%)
    color: darken(white, 3%)

duration-3s
  animation-duration: 3s
View Compiled
new Vue(
  el: '#scene'
  data: items: [
    {
      name: 'bi-fold-brochure',
      top: 31,
      left: 16,
      width: 37,
      zIndex: 2,
      animation: 'fadeInUp',
      links: [
        { link: 'https://i.ibb.co/TH1Ydjt/bi-fold-brochure-shadow.png'}
        { link: 'https://i.ibb.co/0cKmsmV/bi-fold-brochure.png'}
      ]
    }
    {
      name: 'coffee',
      top: 1,
      left: 63,
      width: 20,
      zIndex: 1,
      animation: 'fadeInDown',
      links: [
        { link: 'https://i.ibb.co/0B7rqqL/coffee-shadow.png'}
        { link: 'https://i.ibb.co/bWWDhz2/coffee.png'}
      ]
    }
    {
      name: 'cup',
      top: 24,
      left: 55,
      width: 31,
      zIndex: 2,
      animation: 'fadeInDown',
      links: [
        { link: 'https://i.ibb.co/gTMqzPK/cup-shadow.png'}
        { link: 'https://i.ibb.co/S36yTWL/cup.png'}
      ]
    }
    {
      name: 'cup-coffee',
      top: 23.5,
      left: 54.5,
      width: 32,
      zIndex: 2,
      animation: 'fadeInDown',
      links: [
        { link: 'https://i.ibb.co/G9Y09Sw/cup-coffee.png'}
        { link: 'https://i.ibb.co/G9Y09Sw/cup-coffee.png'}
      ]
    }
    {
      name: 'plate-doughnut-1',
      top: -13,
      left: 16,
      width: 40,
      zIndex: 2,
      animation: 'fadeInDown',
      links: [
        { link: 'https://i.ibb.co/86Q2QH1/plate-doughnut-1-shadow.png'}
        { link: 'https://i.ibb.co/1vH4GmR/plate-doughnut-1.png'}
      ]
    }
     {
      name: 'plate-doughnut-2',
      top: -13,
      left: 16,
      width: 40,
      zIndex: 2,
      animation: 'fadeInDown',
      links: [
        { link: 'https://i.ibb.co/Gkq19rK/plate-doughnut-2-shadow.png'}
        { link: 'https://i.ibb.co/9c1jgrF/plate-doughnut-2.png'}
      ]
    }
    {
      name: 'plate-doughnut-3',
      top: -13,
      left: 16,
      width: 40,
      zIndex: 2,
      animation: 'fadeInDown',
      links: [
        { link: 'https://i.ibb.co/qkYmD62/plate-doughnut-3-shadow.png'}
        { link: 'https://i.ibb.co/WxM1JbC/plate-doughnut-3.png'}
      ]
    }
    {
      name: 'plate',
      top: -12,
      left: 16,
      width: 39,
      zIndex: 1,
      animation: 'fadeInLeft',
      links: [
        { link: 'https://i.ibb.co/hMHFYLs/plate-shadow.png'}
        { link: 'https://i.ibb.co/949KgRn/plate.png'}
      ]
    }
    {
      name: 'saucer-milk',
      top: 5,
      left: 51,
      width: 19,
      zIndex: 2,
      animation: 'fadeInDown',
      links: [
        { link: 'https://i.ibb.co/17TPxxR/saucer-milk.png'}
        { link: 'https://i.ibb.co/17TPxxR/saucer-milk.png'}
      ]
    }
    {
      name: 'saucer',
      top: 5,
      left: 51,
      width: 19,
      zIndex: 1,
      animation: 'fadeInDown',
      links: [
        { link: 'https://i.ibb.co/rGGz8kq/saucer-shadow.png'}
        { link: 'https://i.ibb.co/TLVJNhd/saucer.png'}
      ]
    }
    {
      name: 'sauser',
      top: 23,
      left: 21,
      width: 18,
      zIndex: 1,
      animation: 'fadeInLeft',
      links: [
        { link: 'https://i.ibb.co/gPXLB4C/sauser-shadow.png'}
        { link: 'https://i.ibb.co/zhM2F5L/sauser.png'}
      ]
    }
    {
      name: 'spoon',
      top: 20,
      left: 74,
      width: 10,
      zIndex: 1,
      animation: 'fadeInRight',
      links: [
        { link: 'https://i.ibb.co/Qnn48bp/spoon-shadow.png'}
        { link: 'https://i.ibb.co/r480c48/spoon.png'}
      ]
    }
    {
      name: 'tea-plate',
      top: 23.5,
      left: 54.5,
      width: 32,
      zIndex: 1,
      animation: 'fadeInUp',
      links: [
        { link: 'https://i.ibb.co/dp7BXqL/tea-plate-shadow.png'}
        { link: 'https://i.ibb.co/89t2kxH/tea-plate.png'}
      ]
    }
  ])

a = 9
## Removing the resizing border while moving the object
$('.obj-cont').draggable
  start: ->
    $(this).find(".obj").css("z-index", a++);
    return
  drag: ->
    return
  stop: ->
    return
View Compiled

External CSS

  1. https://fonts.googleapis.com/css?family=Montserrat&display=swap
  2. https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.2/animate.min.css

External JavaScript

  1. https://code.jquery.com/jquery-3.4.1.js
  2. https://cdnjs.cloudflare.com/ajax/libs/draggable/1.0.0-beta.9/draggable.min.js
  3. https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js
  4. https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.11/vue.min.js