Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add CrossFlicking Preset #901

Merged
merged 24 commits into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
25b1b2d
feat: add dragThreshold option
malangfox Jun 25, 2024
ac446f8
feat: add default structure of CrossFlicking
malangfox Jul 30, 2024
7d6cc91
feat: add data attribute usage to CrossFlicking
malangfox Aug 5, 2024
6c01b27
chore: backup test
malangfox Aug 13, 2024
b46e9a6
refactor: rename vertical to side
malangfox Sep 2, 2024
fab257c
chore: update react-scripts to 5.0.1
malangfox Sep 2, 2024
fa50013
test: fix unit test target name
malangfox Sep 2, 2024
d053567
feat: add react-crossflicking
malangfox Sep 5, 2024
6c6cfdf
fix: use externalRenderer on react CrossFlicking
malangfox Sep 9, 2024
e701f47
feat: support data attrubite for react-crossflicking
malangfox Oct 21, 2024
d963b6b
docs: add CrossFlicking demo
malangfox Oct 30, 2024
99322d0
refactor: refactor CrossFlicking codes
malangfox Nov 14, 2024
f72626f
feat: extend crossflicking events from vanilla flicking
malangfox Nov 20, 2024
c469ddc
Merge branch 'master' into feat/crossflicking
malangfox Nov 21, 2024
a2b02d0
test: add options test for CrossFlicking
malangfox Nov 21, 2024
17864c9
Merge branch 'feat/crossflicking' of https://github.com/malangfox/egj…
malangfox Nov 21, 2024
e1537d6
chore: remove only in crossflicking test
malangfox Nov 21, 2024
3056e55
docs: update CrossFlicking demo
malangfox Nov 22, 2024
f7b3fe2
docs: update CrossFlicking demo features
malangfox Nov 25, 2024
6267ae0
fix: apply element property to CrossGroup
malangfox Nov 27, 2024
316a812
fix: do not trigger change when inputEvent not exist
malangfox Nov 28, 2024
b061895
fix: filter options only in CrossFlicking
malangfox Nov 28, 2024
3a09b37
test: fix event test with added side events
malangfox Nov 28, 2024
5f632ca
feat: add sideIndex to changed, willchange event
malangfox Nov 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ module.exports = {
label: "Showcases",
position: "left"
},
{
to: "Presets",
label: "Presets",
position: "left"
},
{
type: "docsVersionDropdown",
position: "right",
Expand Down
5,702 changes: 2,987 additions & 2,715 deletions docs/package-lock.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
"write-heading-ids": "docusaurus write-heading-ids"
},
"dependencies": {
"@docusaurus/core": "^2.4.3",
"@docusaurus/preset-classic": "^2.4.3",
"@docusaurus/core": "2.4.3",
"@docusaurus/preset-classic": "2.4.3",
"@egjs/flicking-plugins": "^4.6.0",
"@egjs/react-flicking": "^4.11.4",
"@egjs/react-flicking": "^4.12.0-beta.6",
"@egjs/react-grid": "^1.1.2",
"@mdx-js/react": "^1.6.21",
"bulma": "^0.9.2",
"clsx": "^1.1.1",
"docusaurus-plugin-sass": "^0.2.5",
"docusaurus-plugin-sass": "0.2.5",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-tabs": "^3.2.2",
Expand Down
140 changes: 140 additions & 0 deletions docs/src/css/demo/crossflicking.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@


.demo {
position: relative;
width: 400px;
height: 600px;
margin: 36px auto;
}

.main {
width: 100%;
height: 100%;
-webkit-border-radius: 20px;
border-radius: 20px;
}


.item {
position: relative;
background: black;
}

.img {
width: 100%;
height: 100%;
opacity: 0.6;
object-fit: none;
}

.labels {
position: absolute;
display: flex;
flex-direction: row;
top: 12px;
left: 12px;
right: 0;
z-index: 2;
}

.label {
display: flex;
justify-content: center;
cursor: pointer;
width: 80px;
line-height: 36px;
font-size: 16px;
color: rgba(255, 255, 255, 0.6);
-webkit-border-radius: 100px;
border-radius: 100px;
-webkit-user-select:none;
-moz-user-select:none;
-ms-user-select:none;
user-select:none
}

.label:hover {
color: rgba(255, 255, 255, 1);
}

.selected {
background-color: rgba(255, 255, 255, 0.2);
}


.info {
position: absolute;
z-index: 3;
bottom: 36px;
left: 0;
right: 0;
max-height: 72px;
margin: auto 20px;
transition: all .25s ease-in-out;
}

.name {
overflow: hidden;
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
align-items: center;
line-height: 42px;
font-size: 30px;
color: rgba(255, 255, 255, 0.6);
}

.headline {
display: block;
display: -webkit-box;
overflow: hidden;
-webkit-box-orient: vertical;
word-break: break-all;
word-wrap: break-word;
margin-top: 8px;
color: #fff;
font-size: 18px;
font-weight: 400;
}

.area {
position: absolute;
left: 0px;
height: 40px;
-webkit-border-radius: 100px;
border-radius: 100px;
transition: width .5s;
}

.page {
position: absolute;
top: 50%;
right: 0;
margin-right: 12px;
transform: translateY(-50%);
display: flex;
flex-direction: column;
z-index: 1;
}

.dot {
overflow: hidden;
width: 5px;
height: 5px;
-webkit-box-flex: 0;
-webkit-flex: 0 0 auto;
flex: 0 0 auto;
-webkit-border-radius: 50%;
border-radius: 50%;
background-color: rgba(255, 255, 255, 0.4);
}

.dot.on {
background-color: rgba(255, 255, 255, 0.8);
}

.dot + .dot {
margin-top: 5px;
}
Loading