PageSourceSearch

https://www.yamakita-cyosa.jp/_nuxt/scroll-fade.c3d45c9d.js

js yamakita-cyosa.jp collected 2026-10-08 01:15:55 UTC 1,075 bytes, 1 lines download raw bytes

1import{d,r as i,A as c,i as u,j as f,B as m,o as p,c as w,s as y,C as v,D as _,l as g}from"./entry.7e55ead7.js";const b=d({__name:"scroll-fade",props:{type:{type:String,default:"scroll-up",validator(e){return["scroll-up","scroll-left","scroll-right","fade-in"].includes(e)}},bottom:{type:Number,default:100},fadeInOnLoad:{type:Boolean,default:!1},delay:{type:Number,default:0},speed:{type:Number,default:.5}},setup(e){const t=e,l=t.fadeInOnLoad?0:t.bottom,o=i({animated:!1}),s=c(null),n=async()=>{const a=s.value;t.delay,window.innerWidth<576&&t.delay>200,a&&window.innerHeight>a.getBoundingClientRect().top+l&&(window.removeEventListener("scroll",n),setTimeout(()=>{o.animated=!0},t.delay))};return u(async()=>{await f(100),window.addEventListener("scroll",n),n()}),m(()=>{window.removeEventListener("scroll",n),o.animated=!1}),(a,r)=>(p(),w("div",{ref_key:"target",ref:s,class:v(["scroll-in",e.type,{animated:o.animated}]),style:_({transition:`${e.speed}s ease-in-out`})},[y(a.$slots,"default",{},void 0,!0)],6))}}),L=g(b,[["__scopeId","data-v-04ed7910"]]);export{L as _};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.