Некодим логотипНекодим
МодификацииПубликацииНекодИИмЦены
Некодим логотипНекодим

© 2020-2026 Некодим

Готовые модификации для вашего сайта. Улучшайте функциональность и дизайн без программирования.

Компания

  • Контакты
  • Публичная оферта
  • Политика конфиденциальности
  • Согласие на обработку данных
  • Лицензионное соглашение
  • Реферальная программа

Полезное

  • Модификации
  • Публикации
  • Каталог блоков Tilda
  • MCP для агентов
  • Журнал изменений
  • Доска почёта

Личный кабинет

  • Вход
  • Регистрация
  • Цены
Журнал измененийИстория GitФайлыTilda MCP
Каталог файлов

tilda-animation-2.0.js

Код файла
Версия от 04.12.2026, 04:03:53 МСК
Оригинал на CDNСнимок 56c3b845Полный текст
501		if (mediaQuery.isContinue) continue;502 503		// prettier-ignore504		styleStr += mediaQuery.text +505			'#allrecords .t396 .t-animate_started[data-animate-style-res-' + mediaQuery.minRes + '="zoomin"] {' +506				'opacity: 1;' +507				'-webkit-transform: scale(1);' +508				'transform: scale(1);' +509			'}' +510		'}';511	}512 
История файла и сравнение версий
  • 04.12.2026, 04:03:53 · 56c3b845
513
// prettier-ignore
514 styleStr +=
515 '.t396 .t-animate[data-animate-style="zoomout"] {' +
516 '-webkit-transform: scale(1.2);' +
517 'transform: scale(1.2);' +
518 '}';
519
520 for (var index = 0; index < breakpoints.length; index++) {
521 var mediaQuery = t_animate__getMediaQuery(breakpoints, index);
522 if (mediaQuery.isContinue) continue;
523
524 // prettier-ignore
525 styleStr += mediaQuery.text +
526 '#allrecords .t396 .t-animate[data-animate-style-res-' + mediaQuery.minRes + '="zoomout"] {' +
527 '-webkit-transform: scale(1.2);' +
528 'transform: scale(1.2);' +
529 '}' +
530 '}';
531 }
532
533 // prettier-ignore
534 styleStr +=
535 '.t396 .t-animate_started[data-animate-style="zoomout"] {' +
536 'opacity: 1;' +
537 '-webkit-transform: scale(1);' +
538 'transform: scale(1);' +
539 '}';
540
541 for (var index = 0; index < breakpoints.length; index++) {
542 var mediaQuery = t_animate__getMediaQuery(breakpoints, index);
543 if (mediaQuery.isContinue) continue;
544
545 // prettier-ignore
546 styleStr += mediaQuery.text +
547 '#allrecords .t396 .t-animate_started[data-animate-style-res-' + mediaQuery.minRes + '="zoomout"] {' +
548 'opacity: 1;' +
549 '-webkit-transform: scale(1);' +
550 'transform: scale(1);' +
551 '}' +
552 '}';
553 }
554
555 // prettier-ignore
556 styleStr +=
557 '.t396 .t-animate_started[data-animate-distance],' +
558 '.t396 .t-animate_started[data-animate-scale]{' +
559 '-webkit-transform: none !important;' +
560 'transform: none !important;' +
561 '}';
562
563 for (var index = 0; index < breakpoints.length; index++) {
564 var mediaQuery = t_animate__getMediaQuery(breakpoints, index);
565 if (mediaQuery.isContinue) continue;
566
567 // prettier-ignore
568 styleStr += mediaQuery.text +
569 '#allrecords .t396 .t-animate_started[data-animate-distance-res-' + mediaQuery.minRes + '],' +
570 '#allrecords .t396 .t-animate_started[data-animate-style-res-' + mediaQuery.minRes + '="zoomout"] {' +
571 '-webkit-transform: none !important;' +
572 'transform: none !important;' +
573 '}' +
574 '}';
575 }
576
577 var style = document.createElement('style');
578 var head = document.head || document.querySelector('head');
579
580 style.textContent = styleStr;
581 head.appendChild(style);
582}
583
584/**
585 * find all the unique breakpoints on the page
586 *
587 * @returns {Array} unique breakpoints
588 */
589function t_animate__getBreakpointsArr() {
590 var breakpoints = [];
591
592 var artBoards = Array.prototype.slice.call(
593 document.querySelectorAll(
594 '.r[data-record-type="396"]:not(.t397__off, .t395__off, .t400__off) .t396__artboard, .r[data-parenttplid="396"]:not(.t397__off, .t395__off, .t400__off) .t396__artboard'
595 )
596 );
597
598 Array.prototype.forEach.call(artBoards, function (artBoard) {
599 if (!artBoard.classList.contains('t396__artboard')) return;
600
Предыдущие 100 строкСледующие 100 строк