Bootstrap 4 Carousels
Hello there in this video. We are going to mess around with our carousel. Okay. Obviously we're messing with the timing because it is flying were also messing around with the transitions. You can see it kind of fading rather than sliding so let's jump in and work out what we're doing. Alright, Carousel, me and you you're being annoying me all this course. I love carousel is just not what I'm teaching there, distracting. But we want to do a couple of things. The first one is going to be is turning it off when it gets to mobile just too small and it's not what I want on mobile devices. So let's go and disable it. So we did this earlier. So it's a good recap. How do I disable? We know it's like display None. Remember from our earlier days. Okay. And in here under utilities, there's one called display. You can have a little look through. I find this little list really helpful, gives you an explanation and then what to do So hidden only on excess, which is what I want. I'm going to turn it ...
off for all of them and then turn it back on for small. In my case I'm only going to turn it back on for the medium. Okay, So I'm gonna grab all that Actually, I don't want the full stop so I'm just going to probably we'll paste it in. So where is my carousel? There you are buddy. Okay. So what I'd like to do is I've got some classes. I've got carousel slide at the moment. I'm going to put in these without the Collins sorry, without the full stops or periods. So you you and I want this one to turn on when it gets to the bigger device, like an ipad. All right, let's have a little look. So it's off on there, Okay, there's the big slider and then it turns off at some stage. Still there, still there, gone, yep, gone. Okay, so we've turned it off and turn it back on at the slightly bigger size. Next thing I wanna do is I want to do the fade. Okay, so let's have a little look at the different options that are available to other components. Okay, and where is our carousel? So it's interesting to have a look through all of this. Okay, explaining what it does, the different controls, What we want to do is I want to find the one with captions, Cross fade, carousel fade, that's what I want to do. What does that look like, yep, that works for me, come here buddy, we're going to edit and just add it after this. There we go. Hopefully we'll have a nice fading one, see how it goes, let's get up to a bigger size and wait for it. Hey, Okay, my one is not perfect because the fade is not like it's because I've got transparency on the background of mine, I've used PNG s as these little images. Okay, so that I could see through to the background gradient if you've got a full image fade looks a lot nicer, it's a little bit jumpy because I've got transparent background but nice work. Alright, last thing I want to do with the carousel and like I guess we're at a point now where actually we know how to go in, work with the documentation, figure out things on our own now and I guess that's the whole point of this, like we could go through every feature of Carousel and then cards and all of them. I'm just getting us to a point where our mock up looks kind of good and hopefully kind of beating into you the different kind of well the techniques for finding what you need in bootstrap and applying to it, your website uh in ves code and I'm getting kind of close to the end of this course, it's pretty exciting, I hope you are getting used to this kind of finding it and a little bit of problem solving, let's say I want to work with the timing, so I like this one here, interval looks pretty good, okay and there is data interval looks pretty good, now remember this is milliseconds, so that's 10 seconds, two seconds. Okay, so it looks like it has to go on something called the carousel item active, let's grab that part and see if we can edit because by default, I have no idea what it is. Let's see what it is here, maybe it doesn't have a default. Alright, there's my carousel item active, there is no default. So let's say I put in this one and let's say we put it down to something real quick. We'll do it to all of them actually and just to prove a point half a second, I've actually put it in the wrong place and put it inside of the class. Okay, let's just have a little look at the documentation and so it's outside of the class. It's actually just another property and I'll do the same on this one here as well and this one pace these guys in and let's see how it works. Look at our example. There we go. Took a little while to get going. It's like hmm why aren't you working? And you can see it's flicking through them real quick now. Okay, so obviously you can change and be individual, you might have testimonials. Some of them are longer than others. So one could be like a minute and a half whereas the other guys could be nice and fast. You don't need to watch this, do you? You get what I mean? So again we are getting close to the end of the course and we're not having every single part of bootstrap or web design in general. I'm hoping though you're getting a good sense of how to find and tackle and where things need to go and what you need to do yourself and what you can rely on for things like bootstrap. Alright, let's get onto one of the last parts, where we start looking at the cards and finishing those off in the next video.