Jump to content
Search Community

Catalin R.

Business
  • Posts

    93
  • Joined

  • Last visited

Posts posted by Catalin R.

  1. Hi,

    I've tried to create a codepen but I don't have access to all plugins.

    The code is long in JS, a lot of variables, tweens and functions.

    I've created in JS groups and masks. The problem is drawSVG plugin doesn't work on elements created by me in JS.

    DrawSVG works only on existing element.

    See the Pen BrZKGJ by ZenTao (@ZenTao) on CodePen

    See the result:

     

    rotator.jpg

  2. Yes, I need multiple dashed circles and masks. In html I have only one circle and one mask, but I've create and appended them in JS.

    The problem is drawSVG plugin animate only one circle (the already existing in html).

    Sorry, I can't show a link to the project!

    Thanks again!

  3. Hello again,

     

    To get this stroke for the rotator I've used in html multiple circles inside svg element and after I've used drawSVG plugin to obtain the right stroke.

    Now, I want to create and append elements and masks with jQuery and after to animate them with drawSVG plugin.

    I've created the elements but I couldn't animate them! Only the original element is animated.

    Can anybody help me, please?

     

    The mark-up:

     

    <svg version="1.1" class="svg-rotator" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 500 500">
                <defs>
                      <mask id="theMask1">
                             <circle class="reveal1" r="250" fill="none" cx="250" cy="250" stroke="#fff" stroke-width="6"/>
                      </mask>
                </defs>

                <g class="maskReveal" mask="url(#theMask1)">
                      <circle class="circle" cx="250" cy="250" r="250" fill="none" stroke="#ccc" stroke-width="6" stroke-dasharray="6"/>
                </g>

    </svg>

     

    Code in JS:

     

    var recentDesf = $(svgRot).find("defs");

                    for (var i = 2; i < rotatorLiSize + 1; i++) {
                        var newGroup = $("<g class='maskReveal' mask='url(#theMask"+i+")'><circle class='circle' cx='250' cy='250' r='250' fill='none' stroke='#ccc' stroke-width='6' stroke-dasharray='6' /></g>");
                        svgRot.append(newGroup);

                        var newMask = $("<mask id='theMask"+i+"'><circle class='reveal"+i+"' r='250' fill='none' cx='250' cy='250' stroke='#fff' stroke-width='6' /></mask>");
                        recentDesf.append(newMask)
                    }

     

     

    TweenMax.set($(this).closest(".top-side").find(".reveal" + idListItem), {
                            drawSVG: start + "%" + " " + end + "%"
                        });

     

    Thanks a lot!

     

  4. Hi,

    I have a rotator and I want to draw a dashed stroke between icons.

    How can I keep the dashed stroke with drawSVG plugin?

    And, how can I use variables instead of values to get stroke only between icons?

    I need something like this:

    TweenMax.set(circle, {drawSVG:"variable1 variable2"});

    How can I use modifier plugin for this?

    Thanks!

     

    circle2.jpg

    circle1.jpg

  5. Hi,

    I've downloaded TweeMax, TimelinMax and CSSRulePlugin. Are these enough for this code?

     

    var openSection = $(".bcg-open");

     

            if (openSection.length) {
                var sectionBefore = CSSRulePlugin.getRule(".bcg-open:before"),
                    sectionAfter  = CSSRulePlugin.getRule(".bcg-open:after"),
                    tl            = new TimelineMax({delay:1, repeat:-1, yoyo:true, repeatDelay:2});

                tl
                .to(sectionBefore, 1, {cssRule: {scaleY: 0}}, 'open')
                .to(sectionAfter, 1, {cssRule: {scaleY: 0}}, 'open');
            }

     

    Can anybody help me, please?

    Thanks!

  6. On 2/27/2018 at 11:52 PM, Visual-Q said:

    I'm not sure I understand the problem however...

     

    If you mean this pen, there is a 0.5s delay on the text animation. If that's what you're refering to, remove it and it will fire at the same time as the silde animation.

     

    Though I think you may mean something else as this has nothing specifically to do with IE.

    It's not about text animation. The next section starts with some delay on scroll.

     

    See the Pen NywvGp by Visual-Q (@Visual-Q) on CodePen

     

     

  7. Hi everyone,
    I have an issue in ScrollMagic.
    I'm interesting in to find if somebody discovered the same issue.

    I want to have the same effect on scroll like on the link below.

    See the last codepen on this link: 


    The plugin reacts instantly on window, on scroll, but on a container has a delay of ~0.5s, only on Internet Explorer.
    Can anybody explain this?

  8. Hi PointC,

    I've tried to do this, but doesn't work. Actually, I want to animate the background of a section on scroll not to have a smooth scroll for entire page.

    I've spent a lot of time to get this effect, but for nothing! I'm desperate.

    Thanks for help!

×
×
  • Create New...