{"id":15015940,"url":"https://github.com/imfly/ember-cli-fullpagejs","last_synced_at":"2025-04-12T10:09:04.712Z","repository":{"id":57223273,"uuid":"55696125","full_name":"imfly/ember-cli-fullpagejs","owner":"imfly","description":"An ember-cli addon to wrap the fullPage.js, Demo：","archived":false,"fork":false,"pushed_at":"2016-09-13T23:13:03.000Z","size":8141,"stargazers_count":7,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T10:08:50.709Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://ebookchain.org","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imfly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-07T13:19:00.000Z","updated_at":"2022-07-03T14:08:00.000Z","dependencies_parsed_at":"2022-08-24T16:20:56.076Z","dependency_job_id":null,"html_url":"https://github.com/imfly/ember-cli-fullpagejs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imfly%2Fember-cli-fullpagejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imfly%2Fember-cli-fullpagejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imfly%2Fember-cli-fullpagejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imfly%2Fember-cli-fullpagejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imfly","download_url":"https://codeload.github.com/imfly/ember-cli-fullpagejs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248550635,"owners_count":21122933,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-24T19:48:11.184Z","updated_at":"2025-04-12T10:09:04.692Z","avatar_url":"https://github.com/imfly.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ember-cli-fullpagejs\n\n![intro.png](./tests/dummy/public/imgs/intro.png)\n\n[![npm version](https://badge.fury.io/js/ember-cli-fullpagejs.svg)](https://badge.fury.io/js/ember-cli-fullpagejs)\n[![Build Status](https://travis-ci.org/imfly/ember-cli-fullpagejs.png?branch=master)](https://travis-ci.org/imfly/ember-cli-fullpagejs)\n[![Dependencies Status](https://david-dm.org/imfly/ember-cli-fullpagejs.svg)](https://david-dm.org/imfly/ember-cli-fullpagejs)\n[![License](http://img.shields.io/badge/License-MIT-blue.svg)](http://opensource.org/licenses/MIT)\n\n这是对 [fullPage.js](https://github.com/alvarotrigo/fullPage.js) 的封装，实现非常酷炫的翻页效果。\n\n* [demo](http://ebookchain.org)\n* [开发文档（Document)]()\n* [使用文档](./README_zh_CN.md)\n\n## Installation\n\nIf you are using Ember CLI 0.2.3 or higher, just run within your project directory:\n\n```bash\nember install ember-cli-fullpagejs --save-dev\n```\n\nIf your Ember CLI version is greater than 0.1.5 and less than 0.2.3, run the following within your project directory:\n\n```bash\nember install:addon ember-cli-fullpagejs\n```\n\nWhen your Ember CLI version is below 0.1.5, please run within your project directory:\n\n```bash\nnpm install --save-dev ember-cli-fullpagejs\nember generate ember-cli-fullpagejs\n```\n\n## Usage\n\nYou only use the tag `{{#full-page}}{{/full-page}}` instead of `\u003cdiv id=\"fullpage\"\u003e\u003c/div\u003e` in your template files, others are the same as using fullPage.js.\n\n#### （1）**Required HTML structure**\n\n```\n{{#full-page}}\n    \u003cdiv class=\"section\"\u003eSome section\u003c/div\u003e\n    \u003cdiv class=\"section\"\u003eSome section\u003c/div\u003e\n    \u003cdiv class=\"section\"\u003eSome section\u003c/div\u003e\n    \u003cdiv class=\"section\"\u003eSome section\u003c/div\u003e\n{{/full-page}}\n```\n\nIn order to create a landscape slider within a section, each slide will be defined by default with an element containing the slide class:\n\n```\n\u003cdiv class=\"section\"\u003e\n    \u003cdiv class=\"slide\"\u003e Slide 1 \u003c/div\u003e\n    \u003cdiv class=\"slide\"\u003e Slide 2 \u003c/div\u003e\n    \u003cdiv class=\"slide\"\u003e Slide 3 \u003c/div\u003e\n    \u003cdiv class=\"slide\"\u003e Slide 4 \u003c/div\u003e\n\u003c/div\u003e\n```\n\n#### （2）**Options**\n\nYou can add an option in the tag, ex:\n\n```html\n{{#full-page autoScrolling='true' navigation='true' anchors='[\"firstPage\", \"secondPage\"]' }}\n\n{{/full-page}}\n```\n\n**Note**: The value of the option has to be wrapped by Single quotation mark `'` instead of Double quotation marks `\"`.\n\nAll of the options are the following, you can [read more](https://github.com/alvarotrigo/fullPage.js#options):\n\n```\n//Navigation\nmenu: '#menu',\nlockAnchors: false,\nanchors:['firstPage', 'secondPage'],\nnavigation: false,\nnavigationPosition: 'right',\nnavigationTooltips: ['firstSlide', 'secondSlide'],\nshowActiveTooltip: false,\nslidesNavigation: true,\nslidesNavPosition: 'bottom',\n\n//Scrolling\ncss3: true,\nscrollingSpeed: 700,\nautoScrolling: true,\nfitToSection: true,\nfitToSectionDelay: 1000,\nscrollBar: false,\neasing: 'easeInOutCubic',\neasingcss3: 'ease',\nloopBottom: false,\nloopTop: false,\nloopHorizontal: true,\ncontinuousVertical: false,\ncontinuousHorizontal: false,\nscrollHorizontally: false,\ninterlockedSlides: false,\nresetSliders: false,\nfadingEffect: false,\nnormalScrollElements: '#element1, .element2',\nscrollOverflow: false,\nscrollOverflowOptions: null,\ntouchSensitivity: 15,\nnormalScrollElementTouchThreshold: 5,\nbigSectionsDestination: null,\n\n//Accessibility\nkeyboardScrolling: true,\nanimateAnchor: true,\nrecordHistory: true,\n\n//Design\ncontrolArrows: true,\nverticalCentered: true,\nsectionsColor : ['#ccc', '#fff'],\npaddingTop: '3em',\npaddingBottom: '10px',\nfixedElements: '#header, .footer',\nresponsiveWidth: 0,\nresponsiveHeight: 0,\nresponsiveSlides: false,\n\n//Custom selectors\nsectionSelector: '.section',\nslideSelector: '.slide',\n\n//events\nonLeave: function(index, nextIndex, direction){},\nafterLoad: function(anchorLink, index){},\nafterRender: function(){},\nafterResize: function(){},\nafterSlideLoad: function(anchorLink, index, slideAnchor, slideIndex){},\nonSlideLeave: function(anchorLink, index, slideIndex, direction, nextSlideIndex){}\n```\n\n## Developing\n\n* `git clone` this repository\n* `npm install`\n* `bower install`\n\n## Running\n\n* `ember server`\n* Visit your app at http://localhost:4200.\n\n## Running Tests\n\n* `npm test` (Runs `ember try:testall` to test your addon against multiple Ember versions)\n* `ember test`\n* `ember test --server`\n\n## Building\n\n* `ember build`\n\nFor more information on using ember-cli, visit [http://ember-cli.com/](http://ember-cli.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimfly%2Fember-cli-fullpagejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimfly%2Fember-cli-fullpagejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimfly%2Fember-cli-fullpagejs/lists"}