{"id":63,"date":"2026-12-01T20:21:26","date_gmt":"2026-12-01T20:21:26","guid":{"rendered":"https:\/\/mishtal-yafia.co.il\/?page_id=63"},"modified":"2026-12-01T20:39:46","modified_gmt":"2026-12-01T20:39:46","slug":"elementor-63","status":"publish","type":"page","link":"https:\/\/mishtal-yafia.co.il\/ar\/elementor-63\/","title":{"rendered":"Elementor #63"},"content":{"rendered":"<div data-elementor-type=\"wp-page\" data-elementor-id=\"63\" class=\"elementor elementor-63\">\n\t\t\t\t<div data-aos=\"fade-up\" class=\"hostinger-elementor-aos elementor-element elementor-element-352a31e e-flex e-con-boxed e-con e-parent\" data-id=\"352a31e\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-aa89560 elementor-widget elementor-widget-html\" data-id=\"aa89560\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t\n<style>\n#rose-scroll {\n  position: relative;\n  height: 350vh;\n  width: 100vw;\n  max-width: none;\n  margin-inline: calc(50% - 50vw);\n}\n\n#rose-screen {\n  position: sticky;\n  top: 0;\n  height: 100vh;\n  height: 100svh;\n  width: 100%;\n  overflow: hidden;\n  background: #102518;\n}\n\n#rose-video {\n  width: 100%;\n  height: 100%;\n  object-fit: cover;\n  object-position: center;\n  display: block;\n}\n\n#rose-content {\n  position: absolute;\n  bottom: 12%;\n  right: 6%;\n  left: 6%;\n  text-align: center;\n  color: white;\n  opacity: 0;\n  transform: translateY(25px);\n  text-shadow: 0 2px 15px #000;\n}\n\n#rose-content h1 {\n  font-size: clamp(32px, 5vw, 75px);\n  font-weight: 800;\n  color: white;\n  margin: 0;\n}\n\n#rose-content p {\n  font-size: 22px;\n  color: white;\n}\n\n#rose-progress {\n  position: absolute;\n  bottom: 0;\n  left: 0;\n  height: 4px;\n  width: 0%;\n  background: #64b005;\n}\n\n@media (max-width: 767px) {\n  #rose-scroll {\n    height: 300vh;\n  }\n\n  #rose-video {\n    object-position: center;\n  }\n\n  #rose-content {\n    bottom: 15%;\n  }\n\n  #rose-content h1 {\n    font-size: 36px;\n  }\n\n  #rose-content p {\n    font-size: 18px;\n  }\n}\n<\/style>\n\n<section id=\"rose-scroll\">\n  <div id=\"rose-screen\">\n\n    <video id=\"rose-video\"\n      muted\n playsinline\n preload=\"auto\">\n    <\/video>\n\n    <div id=\"rose-content\" dir=\"rtl\">\n      <h1>\u0645\u0633\u062a\u0634\u0641\u0649 \u064a\u0641\u064a<\/h1>\n      <p>\u05d4\u05d8\u05d1\u05e2 \u05de\u05ea\u05d7\u05d9\u05dc \u05db\u05d0\u05df<\/p>\n    <\/div>\n\n    <div id=\"rose-progress\"><\/div>\n\n  <\/div>\n<\/section>\n\n<script>\n(function () {\n  const section = document.getElementById('rose-scroll');\n  const screen = document.getElementById('rose-screen');\n  const video = document.getElementById('rose-video');\n  const content = document.getElementById('rose-content');\n  const bar = document.getElementById('rose-progress');\n\n  const desktopVideo = 'https:\/\/mishtal-yafia.co.il\/wp-content\/uploads\/2026\/12\/Pink_rosebud_blooming_60eee027-2.mp4';\n\n  const mobileVideo = 'https:\/\/mishtal-yafia.co.il\/wp-content\/uploads\/2026\/12\/Rose_blooming_vertical_video_ani\u2026_870b2b5e.mp4';\n\n  const mobile = window.matchMedia('(max-width: 767px)');\n\n  function selectVideo() {\n    const source = mobile.matches ? mobileVideo : desktopVideo;\n\n    if (video.getAttribute('src') !== source) {\n      video.src = source;\n      video.load();\n      video.pause();\n    }\n  }\n\n  function update() {\n    const rect = section.getBoundingClientRect();\n    const distance = section.offsetHeight - screen.offsetHeight;\n\n    const progress = Math.min(\n      1, Math.max(0, -rect.top \/ Math.max(1, distance))\n    );\n\n    if (Number.isFinite(video.duration) && video.duration > 0) {\n      const target = progress * Math.max(0, video.duration - 0.04);\n\n      if (Math.abs(video.currentTime - target) > 0.025) {\n        video.currentTime = target;\n      }\n    }\n\n    const opacity = Math.max(0, (progress - 0.45) \/ 0.55);\n\n    content.style.opacity = opacity;\n    content.style.transform =\n      'translateY(' + (25 * (1 - opacity)) + 'px)';\n\n    bar.style.width = (progress * 100) + '%';\n  }\n\n  window.addEventListener('scroll', update, { passive: true });\n\n  window.addEventListener('resize', function () {\n    selectVideo();\n    update();\n  });\n\n  video.addEventListener('loadedmetadata', update);\n\n  selectVideo();\n  update();\n})();\n<\/script>\n<style>\nhtml, body {\n  overflow-x: clip;\n}\n\n@media (max-width: 767px) {\n  #rose-scroll {\n    width: 100%;\n    max-width: 100%;\n    margin: 0;\n    padding: 0;\n  }\n\n  #rose-screen {\n    width: 100%;\n    margin: 0;\n    padding: 0;\n  }\n}\n<\/style>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>\u05de\u05e9\u05ea\u05dc\u05ea \u05d9\u05e4\u05d9\u05e2 \u05d4\u05d8\u05d1\u05e2 \u05de\u05ea\u05d7\u05d9\u05dc \u05db\u05d0\u05df<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_canvas","meta":{"footnotes":""},"class_list":["post-63","page","type-page","status-publish","hentry"],"_hostinger_reach_plugin_has_subscription_block":false,"_hostinger_reach_plugin_is_elementor":false,"_links":{"self":[{"href":"https:\/\/mishtal-yafia.co.il\/ar\/wp-json\/wp\/v2\/pages\/63","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mishtal-yafia.co.il\/ar\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/mishtal-yafia.co.il\/ar\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/mishtal-yafia.co.il\/ar\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mishtal-yafia.co.il\/ar\/wp-json\/wp\/v2\/comments?post=63"}],"version-history":[{"count":7,"href":"https:\/\/mishtal-yafia.co.il\/ar\/wp-json\/wp\/v2\/pages\/63\/revisions"}],"predecessor-version":[{"id":76,"href":"https:\/\/mishtal-yafia.co.il\/ar\/wp-json\/wp\/v2\/pages\/63\/revisions\/76"}],"wp:attachment":[{"href":"https:\/\/mishtal-yafia.co.il\/ar\/wp-json\/wp\/v2\/media?parent=63"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}