How to create a counter using local variables in Figma | Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ต.ค. 2024

ความคิดเห็น • 97

  • @gteja9765
    @gteja9765 5 หลายเดือนก่อน +5

    He forgot to say that we can only use variables in interactions if only we have premium 🤣🤣

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  5 หลายเดือนก่อน

      Are you still using free version!?😱😱

  • @promisedikeofficial
    @promisedikeofficial 20 วันที่ผ่านมา +1

    This worked perfectly for me. Thanks Sergei ❤.
    The only thing was, I used it for my Cart Items and duplicated the counter for the items in the cart
    But when I click use one counter, all the counters perform the same action
    How do I make each counter independent from the other

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  18 วันที่ผ่านมา +1

      Thanks for feedback! Thi happens, because this is the same component with variables. Try to make a separate component for other design elements.

  • @muhammadfadhil6729
    @muhammadfadhil6729 ปีที่แล้ว +5

    Very concise explanation. Thank you!

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  ปีที่แล้ว

      Thank you for feedback! Glad you liked it!

  • @pravinmahadik407
    @pravinmahadik407 7 หลายเดือนก่อน

    Amazing. Thanks

  • @nikyabodigital
    @nikyabodigital 4 หลายเดือนก่อน +1

    I can tell. Figma got the most resourceful and smartest and most innovative people in web app right now.

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  4 หลายเดือนก่อน

      totally agree with you!🤝

  • @MyeshaBennettDesigns
    @MyeshaBennettDesigns 8 หลายเดือนก่อน +1

    If I need multiple counters, how do I make them count independently? Clicking the "plus" button on one counter seems to trigger the others whether I click them or not. Thanks in advance for any tips/advice!

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  8 หลายเดือนก่อน +1

      Hey!👋 it is a great question. The problem it that your using the same variable for all counters. Try to make separate variables for other counters.

    • @promisedikeofficial
      @promisedikeofficial 20 วันที่ผ่านมา

      ​@@Sergei-Chyrkov do you mean, creating the whole thing all over again?

  • @Steezy967
    @Steezy967 7 หลายเดือนก่อน

    I have just followed this and works great. Only issue I am having is that when I have more than one counter on the same page it is applying to all of them, rather than just the one that is clicked. Is it becasue I made it into a reusable component? If not any soloutions?

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  6 หลายเดือนก่อน

      Yes exactly, that’s because you are using same variables and component in all cases. Try to set up different variables for each case.

    • @Steezy967
      @Steezy967 6 หลายเดือนก่อน

      @@Sergei-Chyrkov makes sense, thanks for the reply

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  6 หลายเดือนก่อน

      you are welcome!

  • @gamebones9865
    @gamebones9865 9 หลายเดือนก่อน +1

    Thank you for this! I have a question. When i did this and use various instances, when i click + or - they all change. Do I need to create multiple versions manually or is there a way to duplicate without them all controling each other?

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  9 หลายเดือนก่อน +2

      Hey! Thanks for feedback! Yes, since you are changing one specific variable A, which affects another specific variable B, will change all the B variables. In this case you need to make other modes or different variable pairs. I hope this helps!🙌

    • @gamebones9865
      @gamebones9865 9 หลายเดือนก่อน +1

      @@Sergei-Chyrkov thank you!

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  7 หลายเดือนก่อน

      You are welcome!

  • @sarahcooper2719
    @sarahcooper2719 3 หลายเดือนก่อน

    Hi! Great video, is there a way to duplicate the counter and have them operate separately? I duplicated it and tested it in presentation mode but when I press the "+" button, it triggers both counters. Thanks!

    • @sarahcooper2719
      @sarahcooper2719 3 หลายเดือนก่อน

      Ah, just saw another comment about adding another variable and using the new one for each counter. THANK YOU!!!!!

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  3 หลายเดือนก่อน

      Thanks for the feedback! It is correct. This happens because both counters are using the same variables. Try to make different variables for each counter.

    • @sarahcooper2719
      @sarahcooper2719 3 หลายเดือนก่อน

      @@Sergei-Chyrkov Thanks! I have 2 counters. Top one starts at 2 and bottom one starts at 0. They can both be adjusted either way. I added a reset button but I cant figure out what interaction will reset the counters to their respective numbers, 2 and 0.

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  3 หลายเดือนก่อน

      hi! try to use variables as a starting point and set the conditional to equal these variables so that number will not go lower than the number.

  • @abdurrazaqadinugraha7468
    @abdurrazaqadinugraha7468 2 หลายเดือนก่อน

    How to disable the minus button or make it unclickable when the number shows 1?

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  2 หลายเดือนก่อน +1

      You should make a conditional to show disable state of the component when a variable equals to 1.

    • @abdurrazaqadinugraha7468
      @abdurrazaqadinugraha7468 2 หลายเดือนก่อน

      @@Sergei-Chyrkov I've already implemented a counter for each product catalog, but when I change one counter, all counters change as well. How do I fix this?

    • @abdurrazaqadinugraha7468
      @abdurrazaqadinugraha7468 2 หลายเดือนก่อน

      @@Sergei-Chyrkov I am creating a product catalog. When the cart is clicked, it changes to a counter, and every product that is clicked shows the same counter number

  • @levonarmenian
    @levonarmenian 11 หลายเดือนก่อน

    Hi. At around 5:35s, why did you add a second auto layout? The minus, plus and O were already in auto layout. Thanks!

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  10 หลายเดือนก่อน +2

      Hey!👋 yes, probably you can leave in one AL, but I guess I'm doing automatically because when you will be building it for example in Framer/WebFlow or HTML, I believe you'll will need this extra AL for better structure.

  • @gulagbois
    @gulagbois 4 หลายเดือนก่อน

    Thank you Sergei, because that was a wonderful explanation. Please, I have a question. I copied the final work in 3 copies, and the moment I clicked + on one of the copies, the numbering was added in three layers. How can you fix the numbering of the three layers to be independent, thanks in advance.

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  4 หลายเดือนก่อน

      Hey! Correct, you need to make different variables for each case, because Figma sees it like one same component.

  • @Rolz
    @Rolz 7 หลายเดือนก่อน

    Hi, I get stuck renaming layers. When I hit Command + R, it just reloads my page. I've scoured the internet on how to get to renaming layers but all the shortcuts does not get me there. Help!

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  7 หลายเดือนก่อน

      Hey! I guess this happens because you are using Figma in your browser. Try to do it in Figma App, it should work.

  • @Strawberrypiecream
    @Strawberrypiecream 4 หลายเดือนก่อน

    Thanks for the tutorial! In addition to this, is it possible to change the minus button to "disabled" (when there's a Disabled variant) state when the number hits 1?

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  4 หลายเดือนก่อน

      Thanks for feedback! Sure, you need to make a separate “disabled” variant of the component and than add a conditional in prototype to activate “disabled” variant when it hits 1. I hope this helps!😌

  • @user-jl8ee8om4q
    @user-jl8ee8om4q 4 หลายเดือนก่อน

    I used this and when you put multiple counters in a frame, they all do the same thing. How can I get them to work indvidually?

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  4 หลายเดือนก่อน

      That’s correct because you use the same component and variables. Try to use different variables for each component.

  • @landrland6471
    @landrland6471 11 หลายเดือนก่อน +1

    it's not for free this variable

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  11 หลายเดือนก่อน +1

      yes some of the features are only available on the paid licenses

  • @ujenezanicolepaola2212
    @ujenezanicolepaola2212 4 หลายเดือนก่อน

    Nice and simple to understand the whole process, i was asking for local variants for individual who are using free plan in figma how can we use that?

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  4 หลายเดือนก่อน

      thanks for feedback! I think on a free plan you can only use one mode.

  • @pranav8391
    @pranav8391 10 หลายเดือนก่อน +1

    08:45 the separate set variable is not available for the free Figma version so what will I do?

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  10 หลายเดือนก่อน +1

      I guess you’ll need to get a Pro license … 🙂

    • @pranav8391
      @pranav8391 10 หลายเดือนก่อน

      @@Sergei-Chyrkov That's sad 😢, is there any other possible way?

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  10 หลายเดือนก่อน +1

      unfortunately )

  • @hellsbell365
    @hellsbell365 6 หลายเดือนก่อน

    if i am not wrong, setting multiple variables is available only on the paid version of Figma, is that true?

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  6 หลายเดือนก่อน

      Yes, to use multiple "Modes" you need to have Pro License

  • @Charlie_Bucks
    @Charlie_Bucks 7 หลายเดือนก่อน +1

    well simplified and understood. Thank you.

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  7 หลายเดือนก่อน

      thanks for the feedback! I'm glad you like it!

  • @BlazinglyPassionateHuman
    @BlazinglyPassionateHuman 4 หลายเดือนก่อน

    The best explaination so far regarding the variables I was not able to understand others but your stuff is cool . Im subscribing to your content. Peace!

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  4 หลายเดือนก่อน

      Thank you for feedback! I’m glad it helped!

  • @RiyaBiswas-pq1xo
    @RiyaBiswas-pq1xo ปีที่แล้ว +1

    plz, continue the series. Your content is really great. Can you fix the sound issue? It will be really helpful

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  ปีที่แล้ว

      Sure, I’ll try! Thank you for your feedback!

    • @devakichandrika3516
      @devakichandrika3516 ปีที่แล้ว

      @@Sergei-Chyrkov hi , i am not getting the change to option in prototype it is in disable state only

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  ปีที่แล้ว +1

      Hi! Please check: 1 - if you are working with a Variant inside the Component. 2 - if you have any other interactions on this object, there should only be one.

  • @tonytony-fc6gq
    @tonytony-fc6gq 16 วันที่ผ่านมา

    WOW THANKS this short video made me UNDERSTAND VARIABLES better than 2 hour videos

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  14 วันที่ผ่านมา

      Thanks for feedback! Glad you like it!

  • @MyeshaBennettDesigns
    @MyeshaBennettDesigns 8 หลายเดือนก่อน

    If I'm using multiple counters, how can I make them move independently? Currently, whenever I click the "plus" on one button, it triggers the counter on all my buttons at once.

    • @FPSZeb
      @FPSZeb 7 หลายเดือนก่อน

      yeah thats kinda annoying

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  6 หลายเดือนก่อน

      true, this is because you are using one component. Try to use separate variables for each counter.

  • @MostafaMohamed-2002
    @MostafaMohamed-2002 2 หลายเดือนก่อน

    great video, thank you❤

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  2 หลายเดือนก่อน

      Glad you enjoyed it!🫶

  • @кияночка-оксана
    @кияночка-оксана 11 หลายเดือนก่อน +1

    plz, what can I do when the digit in one card is O and in other cards can be various from 0 to 15 for example? And there are three cards on the screen (like counter of likes): the first has 0 likes, the second has 3 likes and the third has 7 likes. I as a user can add one like each card 🙏It's easy if you start from 0 - everything works correctly, but if you start from any other number it doesn't work. Because it resets the digit to 0 and works from there.

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  11 หลายเดือนก่อน

      hey! I guess you can have several different values in your variables (e.g. 0, 3, 7), so these will be your starting points for each card. Then you'll have to play around with conditionals and do some Math 😅

  • @KarinaPopa-fi4fr
    @KarinaPopa-fi4fr 7 หลายเดือนก่อน +1

    super nice, thanks !

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  6 หลายเดือนก่อน

      I’m happy you like it!

  • @onyiyehelda7539
    @onyiyehelda7539 2 หลายเดือนก่อน

    Amassing tutorial thank you 🎉

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  2 หลายเดือนก่อน

      You’re welcome 😊

  • @NasreenAkhtar-o9v
    @NasreenAkhtar-o9v ปีที่แล้ว +1

    you can become a great teacher

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  ปีที่แล้ว

      Thank you so much! I’m working on it!☺️

  • @sanzy5004
    @sanzy5004 3 หลายเดือนก่อน

    Thanks a lot! This is awesome:)

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  3 หลายเดือนก่อน

      Glad you like it!☺️

  • @m7280
    @m7280 4 หลายเดือนก่อน

    Serezha, thanks a lot!! You're a great teacher!

  • @TheEXmasterwrecker
    @TheEXmasterwrecker 11 หลายเดือนก่อน

    hello friend, is there a way to make an animations with variants set to switch after a delay and have a frame count when swapped to?
    i want to make an animation where it plays a loop 5 times and then switches to a variant of the animation for 1 pass. is that possible?

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  11 หลายเดือนก่อน

      Hey! Yes, I believe you can make it by creating an interactive component and setting after delay with a loop animation there. Check out my other video on my channel about Like Counter, it may help. Good luck!🙌

  • @lottari3682
    @lottari3682 9 หลายเดือนก่อน

    absolutely amazing video! Fantastic!

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  9 หลายเดือนก่อน

      Thank you so much! I’m glad you like it!

  • @soldier4082
    @soldier4082 ปีที่แล้ว

    3:21 come again plz..i using laptop not MAC

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  ปีที่แล้ว

      try CTRL+R

    • @disoin.studio
      @disoin.studio 11 หลายเดือนก่อน

      corrijo, estas usando windows no mac. la tecla Cmd es Crtl en Windows

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  7 หลายเดือนก่อน

      Thank you)))

  • @soldier4082
    @soldier4082 ปีที่แล้ว

    This is variable??🤨

  • @soniakhansohailkhan3035
    @soniakhansohailkhan3035 10 หลายเดือนก่อน

    How can we get the paid version for free😂

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  10 หลายเดือนก่อน

      That is a good question!🤔😅

    • @soniakhansohailkhan3035
      @soniakhansohailkhan3035 10 หลายเดือนก่อน

      @@Sergei-Chyrkov 😂 really ...there are so many features which is not in free version😣😢😭

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  10 หลายเดือนก่อน +1

      well that's life😅 are you doing your work for free?) probably no, so you have to pay for your tools)

  • @xiconi4300
    @xiconi4300 5 หลายเดือนก่อน

    Thank you Sergei!

  • @soldier4082
    @soldier4082 ปีที่แล้ว

    tell me shortcut

  • @disoin.studio
    @disoin.studio 11 หลายเดือนก่อน

    se necesita Figma de pago para implementar este tipo de funciones en los prototipos, pero gracias por enseñarnos

    • @Sergei-Chyrkov
      @Sergei-Chyrkov  11 หลายเดือนก่อน

      Unfortunately yes, some functionality is limited in a free license version