JSFiddle - React, Tailwind, and code Playground

by 규연 황

HTML

<div class="wrap">
  <button>test</button>
</div>
<i class="holi-object-02">명절박스2</i>
<i class="holi-object-01">명절박스1</i>

CSS

[class|='holi-object'] {
    display: block;
    position: absolute;
    
    font: 0/0 a;
    border: 0;
    background: url(http://image.lottemart.com/lm2/images/contents/2017/12/sul-2018-sprite-object.png) no-repeat;
    z-index: 0;
}
.holi-object-01 {
    /* top: 1027px; */
    top: 50px;
    right: 50%;
    left: 0;
    height: 270px;
    margin-right: 250px;
    background-position: 100% -30px;
}
.holi-object-02 {
    /* top: 1696px; */
    top: 200px;
    right: 0;
    left: 50%;
    height: 330px;
    margin-left: 250px;
    background-position: 0 -30px;
}
.wrap {
  width: 500px;
  height: 700px;
  margin: auto;
  background: #333;
}

.wrap button {
  width: 300px;
  height: 80px;
  margin-top: 300px;
}