Skip to content

Commit d6a9714

Browse files
committed
hover behavior
1 parent 1a06d19 commit d6a9714

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

resources/js/processes-catalogue/components/CarouselSlide.vue

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,17 @@
33
<b-carousel
44
ref="carousel"
55
:interval="0"
6+
class="carousel"
67
>
7-
<div class="tw-flex tw-content-stretch tw-absolute tw-w-full tw-z-10 tw-top-1/2 tw-flex-wrap">
8+
<div class="controls tw-flex tw-content-stretch tw-absolute tw-w-full tw-z-10 tw-top-1/2 tw-flex-wrap">
89
<button
910
class="tw-content-center tw-grow tw-left-0 tw-absolute tw-bg-transparent tw-color-[#556271] tw-text-xl"
10-
aria-hidden="false"
1111
@click="prevSlide()"
1212
>
1313
<i class="fas fa-caret-left" />
1414
</button>
1515
<button
1616
class="tw-content-center tw-grow tw-right-0 tw-absolute tw-bg-transparent tw-color-[#556271] tw-text-xl"
17-
aria-hidden="false"
1817
@click="nextSlide()"
1918
>
2019
<i class="fas fa-caret-right" />
@@ -101,6 +100,12 @@ export default {
101100
</script>
102101

103102
<style scoped>
103+
.controls {
104+
display: none;
105+
}
106+
.carousel:hover .controls {
107+
display: block;
108+
}
104109
.carousel-normal {
105110
width: 100%;
106111
height: auto;

0 commit comments

Comments
 (0)