简体   繁体   English

单击时如何创建箭头以滚动到下一个视频? HTML、CSS 和 Javascript 特定

[英]How do I create arrows to scroll to the next video when clicked? HTML, CSS and Javascript specific

在此处输入图像描述

How do I achieve the above effect where, when I click the respective arrows it will scroll to reveal the next video?如何实现上述效果,当我单击相应的箭头时,它将滚动显示下一个视频?

I don't have any code to show, this is all for a school project and now I have to make a website based on the wireframes I came up with.我没有任何代码要显示,这都是为了一个学校项目,现在我必须根据我想出的线框制作一个网站。 I've seen this effect on a couple sites but i'm unsure on how to implement it.我已经在几个网站上看到了这种效果,但我不确定如何实现它。 Can't take back the wireframes I've submitted.无法收回我提交的线框图。 Please help.请帮忙。 The videos page is the only bit of my 5 page wireframes that I'm stumped on.视频页面是我 5 页线框图中唯一让我难过的部分。

What you are trying to do is called a vertical carousel.您正在尝试做的事情称为垂直旋转木马。 Try to google something like "vertical image carousel html".尝试用谷歌搜索“垂直图像轮播 html”之类的内容。

I was able to find some advanced Infinite rotating carousel with 100 list items (#cpc-100-list) with good link in comment我能够找到一些带有 100 个列表项 (#cpc-100-list) 的高级无限旋转轮播,并在评论中提供了很好的链接

<!-- Inspired by: https://3dtransforms.desandro.com/carousel -->

and Infinite Carousel with Pure CSS and JS (ELEMENTS)带有纯 CSS 和 JS(元素)的无限轮播

Or a simpler one, already asked on Stack或者更简单的,已经在 Stack 上询问

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我如何创建一个固定的按钮,当使用HTML和CSS单击该按钮时会打开一个联系表单? - How do I create a fixed button which opens a contact form when clicked using HTML & CSS? HTML/CSS/JS:如果我在侧边栏上列出了几个 mp4 视频,我如何创建一个网页,点击时视频会在页面的主要部分打开? - HTML/CSS/JS: If I list several mp4 videos on a sidebar, how could I create a webpage where the video opens in the main part of the page when clicked? 如何在html / javascript / css中创建一个按钮,当单击该按钮时,该按钮可打开网页中的示例网页 - how to create a button in html/javascript/css that when clicked opens a sample web page within a webpage 如何使用 HTML、css 和 javascript 创建此 hover 按钮 - How do I create this hover button Using HTML, css and javascript 如何使用 HTML5、CSS3、Javascript/Jquery 单击此导航栏跟踪项? - How do I make this navigation bar track item clicked with HTML5, CSS3, Javascript/Jquery? 单击时如何使按钮更改 colors (html, CSS, JavaScript) - How to make buttons change colors when clicked on (html, CSS, JavaScript) 单击按钮时,如何使导航栏滚动页面? - How do I make a navbar scroll the page when clicked on a button? 如何实现单击Html菜单中的特定列表项时所采取的操作? - How do I implement the action taken when a specific list item in an Html menu is clicked? 仅使用 Vanilla JavaScript 单击按钮时,如何滚动到下一部分/div(选择)? - How to scroll to the next section/div (of choice) when a button is clicked using only Vanilla JavaScript? 在html和css中向下滚动时,如何使图像位于菜单栏后面? - How do I make the image go behind the menu bar when I scroll down in html & css?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM