naver / egjs-visible

A class that checks if an element is visible in the base element or viewport.
https://naver.github.io/egjs-visible/
MIT License
53 stars 6 forks source link

support targetSelector property #33

Open sh-chun74 opened 2 years ago

sh-chun74 commented 2 years ago

Description

Steps to check or reproduce

AS-IS

// Create eg.Visible instance
var visible = new eg.Visible(document,{
    targetClass : "card",
    expandSize : 0
});

TO-BE

// Create eg.Visible instance
var visible = new eg.Visible(document,{
    targetSelector : ".card",
    expandSize : 0
});
qpitlove commented 2 years ago

@daybrush When are you planning to release this feature?

daybrush commented 2 years ago

@qpitlove @SeokHwanChun

visible 2.4.0 is released. targetSelector is added.