jquery - 在 BlackNegative 上看到的效果

标签 jquery css html

我想知道如何实现在 Black Negative 上看到的效果- 我在谈论文本“讲述,迷人,故事”中的悬停效果...... 你能只用 css3 或 jQuery 来做吗?如果可以,怎么做?

最佳答案

您可以使用 jQuery 实现基本功能(绝对不完美,但您可以通过一些调整使其工作):

/* Expand on mouseover */
$(".whoweare-title").hover(function(){
    $(this).stop(true, false).animate({
        height: '87px',
        marginTop: '27px',
        marginBottom: '27px'
    });
    $(".whoweare-section-container").stop(true, false).animate({
        marginTop: '-126px',
    });
}, function() {
    $(this).stop(true, false).animate({
        height: '24px',
        marginTop: '0px',
        marginBottom: '0px'
    });
    $(".whoweare-section-container").stop(true, false).animate({
        marginTop: '-67px',
    });
});

另见 this fiddle .

关于jquery - 在 BlackNegative 上看到的效果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14610594/

相关文章:

javascript - 如何使用java脚本创建的超链接添加附加参数,例如(rel ="Y"data-behavior ="X"data-token ="XXX"class ="XXX")

javascript - 在 Javascript 中使用 zclip 插件复制和粘贴格式化文本

javascript - 在div中如何从右到左追加元素?

javascript - 动态更改类后 onmousedown 不会回调

php - 在 concrete5 中调整内容 block 的大小

HTML 子对象不从父对象获取属性

jquery - .data() jquery

css - 在Safari中切断Box-Shadow

javascript - 如何判断3个html页面( Pane )是否完全刷新?

html - 忽略 iFrame 高度