apility/gallery-overlay
Composer 安装命令:
composer require apility/gallery-overlay
包简介
README 文档
README
Eloquent compatible model for working with Netflex Pagess.
Installation
composer require apility/gallery-overlay
Dependencies
owl carousel
yarn add apility/OwlCarousel2
Setup
Add .scss files to your project: By default this will be published to your /resources/scss/vendor/ folder. This file can be tweaked to your project and will not be overriden unless you publish again with a force flag.
php artisan vendor:publish
Imports
Javascript: Add import to owl carousel to your app.js file
import 'owl.carousel'
Sass: Add import for owl carousel css and published galleryOverlay scss. Your import paths may vary. Look for the published galleryOverlay.scss file created in the setup step
@import "~owl.carousel/dist/assets/owl.carousel.css"; @import "../sass/vendor/galleryOverlay.scss";
Usage
Blade components
On your template view add , this should be added as high up in the DOM tree as possible for the overlay to work properly.
example:
@extends('layouts.base') @section('body') <x-blocks area="sections" /> <x-gallery-overlay /> @endsection
Finally add in the play button where you want it to show up: You can replace the content inside to customize it's look.
example:
<x-play-button> Play<i class="fas fa-play"></i> </x-play-button>
Mounting owl carousel
Mount and customize owl carousel in your main js file
$(".GalleryOverlay__container > .owl-carousel").owlCarousel({ items: 1, loop: $(".fullwidth-banner .item").length > 1, margin: 0, nav: false, mouseDrag: true, touchDrag: true, dots: true, navText: [ '<i class="fal fa-chevron-left"></i>', '<i class="fal fa-chevron-right"></i>' ] });
Contributing
Thank you for considering contributing to the Netflex Structure! Please read the contribution guide.
Code of Conduct
In order to ensure that the community is welcoming to all, please review and abide by the Code of Conduct.
License
Netflex Structure is open-sourced software licensed under the MIT license.
Copyright © 2020 Apility AS
apility/gallery-overlay 适用场景与选型建议
apility/gallery-overlay 是一款 基于 SCSS 开发的 Composer 扩展包,目前已累计 45 次下载、GitHub Stars 达 0, 最近一次更新时间为 2020 年 05 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 apility/gallery-overlay 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 apility/gallery-overlay 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 45
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-05-18