【发布时间】:2019-01-06 09:51:52
【问题描述】:
寻找 Angular 动画以在鼠标悬停时滚动 div 顶部和底部,在 mouseout 时我们应该清除滚动。
完全相似的动画类型。
http://www.solucior.com/13-Scroll_div_with_javascript.html
function scrollDiv(divId, depl) {
var scroll_container = document.getElementById(divId);
scroll_container.scrollTop -= depl;
timer1 = setTimeout('scrollDiv("'+divId+'", '+depl+')', 30);
}
这是 Java 脚本代码。但我正在寻找 Angular 代码。
【问题讨论】:
标签: angular