본문으로 건너뛰기
버전: Next

Rendering elements inside the wrapper element

You can place elements inside the .flicking-viewport element like the following:

html
<div id="flick" class="flicking-viewport">
<div class="flicking-camera">
<div class="panel">1</div>
<div class="panel">2</div>
<div class="panel">3</div>
</div>
<span class="item-inside-viewport"></span>
<span class="item-inside-viewport"></span>
</div>
js
import Flicking from "@egjs/flicking";

const flicking = new Flicking("#flick", {
circular: true
});