Giter Club home page Giter Club logo

Comments (16)

stephane-monnot avatar stephane-monnot commented on May 30, 2024 4

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.

stephane-monnot avatar stephane-monnot commented on May 30, 2024 1

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.

stephane-monnot avatar stephane-monnot commented on May 30, 2024 1

Sorry, I'm in Japan, I was sleeping :D .

I will look it now.

from react-vertical-timeline.

stephane-monnot avatar stephane-monnot commented on May 30, 2024 1

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.

Binz95 avatar Binz95 commented on May 30, 2024 1

Thank you so much dear stephene
It's working now 😍

from react-vertical-timeline.

stephane-monnot avatar stephane-monnot commented on May 30, 2024 1

Could you reupload please, I can't see uploaded image.

from react-vertical-timeline.

stephane-monnot avatar stephane-monnot commented on May 30, 2024

I can't reproduce your issue. Could you provide an example ?

from react-vertical-timeline.

Binz95 avatar Binz95 commented on May 30, 2024

. 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.

Binz95 avatar Binz95 commented on May 30, 2024

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.

Binz95 avatar Binz95 commented on May 30, 2024

From top I removed
But I can't remove from bottom

from react-vertical-timeline.

Binz95 avatar Binz95 commented on May 30, 2024

It's working now

from react-vertical-timeline.

stephane-monnot avatar stephane-monnot commented on May 30, 2024

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.

Binz95 avatar Binz95 commented on May 30, 2024

At first I give as u mentioned but that time I didn't get that black line between vertical elements

from react-vertical-timeline.

Binz95 avatar Binz95 commented on May 30, 2024

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.

stephane-monnot avatar stephane-monnot commented on May 30, 2024

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.

Binz95 avatar Binz95 commented on May 30, 2024

I got it thanku

from react-vertical-timeline.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.