gianff / another-vue-carousel Goto Github PK
View Code? Open in Web Editor NEWA javascript carousel implemented in Vue.js
A javascript carousel implemented in Vue.js
There will be a good idea to add more Carousel example configurations and also explain each prop for each one.
There is a bug when you have more than one carousel in the same page:
carousel-1
and carousel-2
, when clicking on the right arrow on carousel-1
then carousel-2
will also be right clicked.If we extract the arrows to components then we will end up with a totally configurable Carousel
Untill now users will need to know how the carousel works in order to use the library.
That is becouse the carousel-items are coupled to the Carousel, for example:
<div v-for="item in secondCarouselItems" v-bind:key="`fourth-item-${item}`" class="fourth-item" v-bind:style="`transform: translateX(${offset}px)`" >
<img alt="Vue logo" src="./assets/logo.png" width="100px" height="300px">
</div>
This line of code is in the main page and every carousel-item has it, that v-bind:style
is coupling the customer item to the Carousel, if we extract a new component (i.e: carousel-item) and put that logic there, we will been decoupling the Carousel from customer items.
The Carousel need to have tests in order to check:
We also need to add CI
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.