poptrox点击图片弹出图层放大图片

poptrox点击图片弹出图层放大图片

添加时间:2021-03-01 16:02:01
站长推荐丨赞助论坛,可获取海量资源终身免费下载权限奥!
举报 举报
收藏
预览
附件 附件
  • 模板类型模板类型:弹出层
  • 模板颜色模板颜色:中级
  • 下载积分下载积分:28 米粒
  • 下载权限下载权限:

    赞助会员

点击图片是弹出特效悬浮层,实现图片放大效果,poptrox图片放大插件
poptrox点击图片弹出图层放大图片
分类:悬浮层/弹出层 > 弹出层 难易:中级

poptrox插件API设置

var settings = $.extend({
    preload: false, // If true, preload fullsize images in the background
    baseZIndex: 1000, // Base Z-Index
    fadeSpeed: 300, // Global fade speed
    overlayColor: '#000000', // Overlay color
    overlayOpacity: 0.6, // Overlay opacity
    overlayClass: 'poptrox-overlay', // Overlay class
    windowMargin: 50, // Window margin size (in pixels; only comes into play when an image is larger than the viewport)
    windowHeightPad: 0, // Window height pad
    selector: 'a', // Anchor tag selector
    caption: null, // Caption settings (see docs)
    parent: 'body', // Parent selector (ie. where all the popup/overlay stuff gets added).
    popupSpeed: 300, // Popup (resize) speed
    popupWidth: 200, // Popup width
    popupHeight: 100, // Popup height
    popupIsFixed: false, // If true, popup won't resize to fit images
    useBodyOverflow: false, // If true, the BODY tag is set to overflow: hidden when the popup is visible
    usePopupEasyClose: true, // If true, popup can be closed by clicking on it anywhere
    usePopupForceClose: false, // If true, popup can be closed even while content is loading
    usePopupLoader: true, // If true, show the popup loader
    usePopupCloser: true, // If true, show the popup closer button/link
    usePopupCaption: false, // If true, show the popup image caption
    usePopupNav: false, // If true, show (and use) popup navigation
    usePopupDefaultStyling: true, // If true, default popup styling will be applied (background color, text color, etc)
    popupBackgroundColor: '#FFFFFF', // (Default Style) Popup background color (when usePopupStyling = true)
    popupTextColor: '#000000', // (Default Style) Popup text color (when usePopupStyling = true)
    popupLoaderTextSize: '2em', // (Default Style) Popup loader text size
    popupCloserBackgroundColor: '#000000', // (Default Style) Popup closer background color (when usePopupStyling = true)
    popupCloserTextColor: '#FFFFFF', // (Default Style) Popup closer text color (when usePopupStyling = true)
    popupCloserTextSize: '20px', // (Default Style) Popup closer text size
    popupPadding: 10, // (Default Style) Popup padding (when usePopupStyling = true)
    popupCaptionHeight: 60, // (Default Style) Popup height of caption area
    popupCaptionTextSize: null, // (Default Style) Popup caption text size
    popupBlankCaptionText: '(untitled)', // Applied to images that don't have captions (when captions are enabled)
    popupCloserText: '×', // Popup closer text
    popupLoaderText: '••••', // Popup loader text
    popupClass: 'poptrox-popup', // Popup class
    popupSelector: null, // (Advanced) Popup selector (use this if you want to replace the built-in popup)
    popupLoaderSelector: '.loader', // (Advanced) Popup Loader selector
    popupCloserSelector: '.closer', // (Advanced) Popup Closer selector
    popupCaptionSelector: '.caption', // (Advanced) Popup Caption selector
    popupNavPreviousSelector: '.nav-previous', // (Advanced) Popup Nav Previous selector
    popupNavNextSelector: '.nav-next', // (Advanced) Popup Nav Next selector
    onPopupClose: null, // Called when popup closes
    onPopupOpen: null						// Called when popup opens

}, options);

poptrox使用方法:

<div id="gallery" class="pot">
    <a href="https://jy.tp.yuanmeng.life/jquery/20/2027/big.jpg"><img src="https://jy.tp.yuanmeng.life/jquery/20/2027/big.jpg"  alt="抓娃娃" title='抓娃娃'/></a>
    <a href="https://jy.tp.yuanmeng.life/modals/11/1145/big.jpg"><img src="https://jy.tp.yuanmeng.life/modals/11/1145/big.jpg" alt="ace后台" title='ace后台模板'/></a>
</div>

poptrox调用

$('.pot').poptrox({
    usePopupCaption: true
});

类似图片放大效果,可参考:https://jy.tp.yuanmeng.life/js/88.html

相关内容推荐
资源求助发帖
查看更多发帖

*

回帖描述:

*

链接类型:

*

下载链接:

密码:
发帖规则:回帖内容为会员之间的私信,普通网友无法查看。
免责声明:回帖中提供的链接内容仅供会员之间学习参考使用,获取内容后请在法律法规范围内使用。回帖提供的内容应符合法律法规要求,不得违反法律法律的要求。
站点权责:回帖内容如违反法律法规,站点有权封停账号使用权利。对用户举报的内容,站点有责任及时删除违规内容。
热点内容推荐
标题:poptrox点击图片弹出图层放大图片

*

描述:
平均回复时间:3-10分钟
规则介绍:悬赏寻求论坛网友分享资源,站点对分享内容的准确性,合法性,版权等没有足够的监管能力。如果您发现资源不正确,无法使用,不符合法律法律等情况,您可以直接举报资源。站长将尽快核实您的举报,并根据情况,采取封号,退换米粒等处理。

*

回帖描述:

*

链接类型:

*

阅读权限:

*

下载链接:

密码:
发帖规则:回帖内容为会员之间的私信,普通网友无法查看。
免责声明:回帖中提供的链接内容仅供会员之间学习参考使用,获取内容后请在法律法规范围内使用。回帖提供的内容应符合法律法规要求,不得违反法律法律的要求。
站点权责:回帖内容如违反法律法规,站点有权封停账号使用权利。对用户举报的内容,站点有责任及时删除违规内容。
  • 背景波浪
  • 背景波浪
  • 波浪
  • 波浪
客服
在线咨询
周一 至 周日 9:00 ~ 22:00
QQ:1326974360
微信:juyoubuluo6688
客服热线
18205485173
工作日 9:00 ~ 18:00
微信扫码咨询
客户服务
欢迎咨询服务
咨询量较多时,请耐心等待
社群

关注公众号

获取更多资讯

扫码进群(QQ)

与更多大牛交流沟通

0.093878s