ungleich-staticcms/assets/u/static/popper.js-1.16.0/docs/_includes/example40.html

39 lines
873 B
HTML
Raw Normal View History

<div class="rel" id="example4reference1">
<p class="bold">Reference</p>
</div>
<div class="popper" id="example4popper1">
<p class="bold">Shifted popper</p>
<p class="thin">on start</p>
<div class="popper__arrow" x-arrow></div>
</div>
<div class="popper" id="example4popper2">
<p class="bold">Shifted popper</p>
<p class="thin">on end</p>
<div class="popper__arrow" x-arrow></div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function(){
var shiftStart = new Popper(example4reference1, example4popper1, {
placement: 'left-start',
});
var shiftEnd = new Popper(example4reference1, example4popper2, {
placement: 'bottom-end',
});
}, false);
</script>
<style>
#example4popper1,
#example4popper2 {
width: 100px;
}
#example4popper1 {
height: 150px;
}
</style>