Skip to content

feat(Gallery): add animation customization#9090

Merged
BlackySoul merged 1 commit intomasterfrom
blackysoul/8985/add_gallery_animation_props
Oct 23, 2025
Merged

feat(Gallery): add animation customization#9090
BlackySoul merged 1 commit intomasterfrom
blackysoul/8985/add_gallery_animation_props

Conversation

@BlackySoul
Copy link
Contributor


  • Документация фичи
  • Release notes

Описание

С помощью двух новых свойств (animationDuration и animationEasing) теперь можно управлять анимацией переключения слайдов.

Для имплементации cubic-bezier функции на JS хотела взять gre/bezier-easing, но либа давно не обновлялась, возможно, заброшена, поэтому скопировала предложенную улучшенную версию из PRа в репе - заметила, что при некоторых параметрах она даёт результаты ближе к нативной CSS-реализации.

Release notes

Улучшения

  • Gallery: добавлены свойства animationDuration и animationEasing для изменения длительности
    и функция анимации слайда соответственно.

@github-actions
Copy link
Contributor

size-limit report 📦

Path Size
JS 420.52 KB (+0.23% 🔺)
JS (gzip) 127.78 KB (+0.4% 🔺)
JS (brotli) 104.77 KB (+0.32% 🔺)
JS import Div (tree shaking) 1.67 KB (0%)
CSS 370.08 KB (0%)
CSS (gzip) 45.76 KB (0%)
CSS (brotli) 36.26 KB (0%)

@github-actions
Copy link
Contributor

e2e tests

Playwright Report

@github-actions
Copy link
Contributor

📊 Найдены изменения в собранных файлах: Отчет

Commit 8c0f15c

@codecov
Copy link

codecov bot commented Oct 23, 2025

Codecov Report

❌ Patch coverage is 79.31034% with 18 lines in your changes missing coverage. Please review.
✅ Project coverage is 95.96%. Comparing base (a6c0e92) to head (8c0f15c).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
packages/vkui/src/lib/fx.ts 68.62% 16 Missing ⚠️
packages/vkui/src/components/CarouselBase/hooks.ts 92.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9090      +/-   ##
==========================================
- Coverage   96.01%   95.96%   -0.06%     
==========================================
  Files         455      455              
  Lines       26456    26525      +69     
  Branches     4909     4923      +14     
==========================================
+ Hits        25403    25454      +51     
- Misses       1053     1071      +18     
Flag Coverage Δ
unittests 95.96% <79.31%> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Contributor

👀 Docs deployed

📦 Package ✅

yarn add @vkontakte/vkui@https://vkui-screenshot.hb.bizmrg.com/pull/9090/8c0f15c82ae9adbc49f988a5ae20d1089e04b1ba/pkg/@vkontakte/vkui/_pkg.tgz

Commit 8c0f15c

Copy link
Contributor

@inomdzhon inomdzhon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✨✨✨

@BlackySoul BlackySoul merged commit b2ff734 into master Oct 23, 2025
28 of 30 checks passed
@BlackySoul BlackySoul deleted the blackysoul/8985/add_gallery_animation_props branch October 23, 2025 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants