Comments (16)
It's not possible.
But with a little hack, you can :)
For 1 column type :
Hide the line :
.vertical-timeline::before {
background: transparent;
}
And create line for each items :
.vertical-timeline-element:not(:last-child)::before {
content: '';
position: absolute;
top: 30px;
left: 18px;
height: calc(100%);
width: 4px;
background: white;
}
And for two columns :
@media only screen and (min-width: 1170px)
.vertical-timeline.vertical-timeline--two-columns .vertical-timeline-element:not(:last-child)::before {
left: 50%;
top: 60px;
margin-left: -2px;
}
}
from react-vertical-timeline.
You can hide the line by default and show on scroll. Maybe you can use visibilitySensorProps prop to show the line.
from react-vertical-timeline.
Sorry, I'm in Japan, I was sleeping :D .
I will look it now.
from react-vertical-timeline.
If you have no event, you can add a condition and skip the render of VerticalTimeline :
{events.length > 0 &&
<VerticalTimeline>....</VerticalTimeline>
}
from react-vertical-timeline.
Thank you so much dear stephene
It's working now 😍
from react-vertical-timeline.
Could you reupload please, I can't see uploaded image.
from react-vertical-timeline.
I can't reproduce your issue. Could you provide an example ?
from react-vertical-timeline.
. verticalTimeLineColor ::before {
background :black! important;
}
I give this style for the line in timeline display
I need to show it when only the webpart events load
No need to display the line default
from react-vertical-timeline.
If there are no events in timeline then also this black line is appearing in my webpart...
No need to show this black line while loading
from react-vertical-timeline.
From top I removed
But I can't remove from bottom
from react-vertical-timeline.
It's working now
from react-vertical-timeline.
I don't understand why you create a verticaltimeline for each element. You should add your .map inside the VerticalTimeline element and inside the map, create a VerticalTimelineElement.
from react-vertical-timeline.
At first I give as u mentioned but that time I didn't get that black line between vertical elements
from react-vertical-timeline.
At first I add .map inside the VerticalTimeline element and inside the map, created a VerticalTimelineElement. But I can't get that black line between each events.... So I change my code like this.... Please help me to find a solution for this problem
from react-vertical-timeline.
Could you share your code if you project is not condidential ? It's 4 am here, I will go to sleep :)
from react-vertical-timeline.
I got it thanku
from react-vertical-timeline.
Related Issues (20)
- TS - lineColor missed on interface HOT 2
- The date is not displayed and the icons are cut off
- Timeline events should use dates to order rather than rely on their position in an array. HOT 3
- lineColor not working
- React 18 test issue HOT 2
- Content and Date are not alternating HOT 1
- lineColor on VerticalTimelineElement not working. HOT 1
- How to add load more icon HOT 1
- How to force an element to left or to right while using 2-columns layout HOT 1
- Force 2 Column Layout on Small Screen
- 2 Column layout not working
- How to modify style.min.css for custom styling
- enhancement: Ability to add custom breakpoints
- How to remove vertical line and icons HOT 1
- Can't find a way to remove connector below last item HOT 1
- change lineColor for tailwind dark mode HOT 2
- The white line not showing on the first render in NextJS 13 HOT 3
- No props for icon box shadow
- TypeError: Cannot read properties of undefined (reading 'prototype') HOT 3
- Animation Issue in Timeline when Loading More Items HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-vertical-timeline.