Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

633023 Views

Latest files of /cody/bradtraversy/50projects50days/image-carousel

style.css cody/bradtraversy/50projects50days/image-carousel/style.css
86 Views
0 Comments
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

* {
box-sizing: border-box;
}

body {
font-family: 'Roboto', sans-serif;
Image Carousel cody/bradtraversy/50projects50days/image-carousel/index.html
287 Views
0 Comments
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<title>Image Carousel</title>
</head>
script.js cody/bradtraversy/50projects50days/image-carousel/script.js
102 Views
0 Comments
const imgs = document.getElementById('imgs')
const leftBtn = document.getElementById('left')
const rightBtn = document.getElementById('right')

const img = document.querySelectorAll('#imgs img')

let idx = 0