Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

How to build a carousel in Lit

Автор: Lit: Simple. Fast. Web Components.

Загружено: 2022-05-03

Просмотров: 13166

Описание:

In this video, we build a simple-carousel using Lit, letting us explore passing child DOM (Document Object Model) into your web component and some simple web component composition. We also use the Web animation API, play with SVGs, styles, and events to make the carousel look beautiful. Finally, we use the carousel in a create-react-app just by adding the simple-carousel HTML tag we invented.

Github repository with completed simple-carousel → https://goo.gle/3kmGEor

Motion Carousel Playground example → https://goo.gle/37UJxK9
Lit documentation site → https://goo.gle/Lit-devsite
Web Animations API docs → https://goo.gle/3LqYRx7

Chapters
0:00 - Introduction
0:51 - Finished simple-carousel demo
Final code in a repository → https://goo.gle/3y0BVk8
01:20 - Lit starter kit setup
Get Node.js →https://goo.gle/3Lqieq4
02:20 - Defining the simple-carousel
Follow along using the Lit playground → https://goo.gle/3ruWNfx
03:08 - Passing in child elements
Checkpoint TS → https://goo.gle/3MDnCpM
Checkpoint JS → https://goo.gle/38x4cUM
Rendering children with slots documentation → https://goo.gle/38rXwHD
HTMLSlotElement MDN documentation → https://goo.gle/37OBSNG
Shadow DOM
:slotted()
06:10 - Carousel slide-button!
Checkpoint TS → https://goo.gle/36V29cO
Checkpoint JS → https://goo.gle/37RjNia
07:12 - Using slide-button in simple-carousel
Checkpoint TS → https://goo.gle/3MFA8Fd
Checkpoint JS → https://goo.gle/3voAsCw
Events documentation → https://goo.gle/39pK3k8
08:05 - SVG and styles
Checkpoint TS → https://goo.gle/3vroMPH
Checkpoint JS → https://goo.gle/3vlQeya
10:03 - Animations
Checkpoint TS → https://goo.gle/36UR37A
Checkpoint JS → https://goo.gle/3OHk8EB
Element.animate documentation → https://goo.gle/3KjYQtv
12:18 - Use simple-carousel in React!
Finished code Github repository → https://goo.gle/3kmGEor
Create React App → https://goo.gle/3vSsVLk
@lit-labs/react → https://goo.gle/3ksAOSh
Custom Elements in React RFC → https://goo.gle/36WGGjH
14:02 - Wrap up
@lit-labs/motion → https://goo.gle/3kmNUAA
Motion Carousel Playground example → https://goo.gle/37UJxK9
Lit Github Discussions → https://goo.gle/3uSoRvr

Have any lingering questions? Tweet at us with the hashtag AskLitDev or join the Lit & Friends Discord!

Join the community → https://goo.gle/Lit-Community
Twitter → https://goo.gle/Lit-Twitter
Discord → https://goo.gle/Lit-Discord

Watch more Build it with Lit → https://goo.gle/BuilditwithLit
Subscribe to never miss a video on Lit → https://goo.gle/Lit

#Lit #WebComponents #WebDevelopment

How to build a carousel in Lit

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

How to style your Lit elements

How to style your Lit elements

How to build your first Lit component

How to build your first Lit component

Микросервисы на практике - сервис продажи билетов

Микросервисы на практике - сервис продажи билетов

How to use Web Components, and why you'd want to

How to use Web Components, and why you'd want to

Веб-компоненты переживут ваш JavaScript-фреймворк | Prime Reacts

Веб-компоненты переживут ваш JavaScript-фреймворк | Prime Reacts

What are elements - Lit University (Basics)

What are elements - Lit University (Basics)

Что популярно в мире JavaScript #программирование

Что популярно в мире JavaScript #программирование

Can you build a web app with vanilla Web Components in 2024?!?

Can you build a web app with vanilla Web Components in 2024?!?

Lit Labs: Context

Lit Labs: Context

The Good, The Bad, and The Web Components - Zach Leatherman | JSHeroes 2023

The Good, The Bad, and The Web Components - Zach Leatherman | JSHeroes 2023

Сисадмины больше не нужны? Gemini настраивает Linux сервер и устанавливает cтек N8N. ЭТО ЗАКОННО?

Сисадмины больше не нужны? Gemini настраивает Linux сервер и устанавливает cтек N8N. ЭТО ЗАКОННО?

Event communication between web components - Lit University (Advanced)

Event communication between web components - Lit University (Advanced)

The Windows 11 Disaster That's Killing Microsoft

The Windows 11 Disaster That's Killing Microsoft

Learn Web Components In 25 Minutes

Learn Web Components In 25 Minutes

Введение в литературу — Lit University (Основы)

Введение в литературу — Lit University (Основы)

Using TailwindCSS with LitElement

Using TailwindCSS with LitElement

Забудь VS Code — Вот Почему Все Переходят на Cursor AI

Забудь VS Code — Вот Почему Все Переходят на Cursor AI

HTMX - What they don't want you to know!

HTMX - What they don't want you to know!

Lit 3.0 Explained

Lit 3.0 Explained

Using Lit and Web Components to build Single-Page Applications | Michele Stieven | jsday 2022

Using Lit and Web Components to build Single-Page Applications | Michele Stieven | jsday 2022

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: infodtube@gmail.com