0:07
hey everybody happy Wednesday it is live day
0:13
I was literally working to the last second on some cool total CS 3 features
0:20
um hopefully new beta tomorrow uh if all goes well I was hoping to I was hoping
0:25
to ship it like yeah whatever days ago but anyway
0:30
hello You Beautiful People well at least some of us
0:36
Chris um okay here let me let me just verify that the thing I did May maybe
0:41
I'll show it off a little bit okay that works cool M
0:50
filters excellent working love it love it when things work Mr workman's in the
0:55
house Mr Cole Francis Mr Francis Dr Bob
1:01
Matias howdy from Germany howdy to Germany I'm not from Germany uh one day
1:08
I'll make it over there one day Ramstein okay excellent love that
1:17
thank you this is one of my favorite hats so I actually have two of this exact hat just different
1:22
colors um so yeah thank you this is definitely one of my
1:27
favorites all right uh here okay while while here while I'm verifying what I
1:33
did actually work let me go ahead and um share my screen and I'll just quickly show you this has nothing to do with
1:39
what we're showing off today um but you know what it's hot and new and um a lot
1:45
of people are wanting it right so um here's cms3 beta okay and uh we're going
1:51
to have uh filtering and sorting of uh blog Loops okay um you can have as many
1:58
filters and as many as you want you can also limit and add some pagination as
2:03
well which is pretty cool so um I literally just built the controls this
2:10
it doesn't actually work yet well it works on the the application side but I haven't built all the logic in into the
2:16
stacks yet um I'm just kind of building out the settings so um yeah pretty cool you'll be able to add in as many um
2:22
filters as you want again the settings I haven't even done the settings here yet so just all the raw Basics uh right now
2:29
but um super excited about this it's going to be super powerful um if you like the filtering in feeds um this is
2:36
going to be even a little bit more powerful than that so there we
2:44
go okay um wa one more one more cool little dude
2:51
ad um in in this next beta okay I know some of you probably joined last week I
2:57
did a like an epic three-hour live stream and um I showed off the new admin
3:03
dashboard right and one of the the bad things about the admin dashboard is it
3:08
doesn't work inside or it didn't work in preview but guess what it does now right
3:13
so uh we have this is in preview I now have full access to the CMS instance
3:20
that runs inside of preview all the docs are here you can go ahead and look at
3:25
your collections you can add new objects All That Jazz um all within preview um
3:32
so yeah new admin dashboard you might notice there's a few few new tools here as well little project setup tool which
3:38
is kind of cool but more on that later we're not going to dive into that now okay
3:45
um let's go ahead and uh let's close this project out don't save that all
3:50
right uh we're going to set up a going to set up a new project okay um cuz as
3:58
usual um I kind of I I don't have many plans I didn't pre-build anything here
4:05
um I think you guys kind of like it when I uh kind of wing it and just like I struggle so maybe I'll struggle through
4:12
some things as well here uh we're just going to kind of build some things and
4:18
um uh Depot and files next week um so I don't know about Depot and files
4:26
yet they're currently two betas away because mostly because I I split this current beta in half um in order to get
4:34
filters out and some of this other stuff out a little sooner um
4:40
so I don't know about next week but soon okay sorry Maas I know I know you're
4:46
really wanting those um okay what was I doing oh yeah
4:52
uh let me bring up the post that kind of inspired um today's uh live stream
5:00
uh where is it where is it where is
5:05
it okay so um kind of a run-of-the-mill post not many people helped out and
5:12
replied but um it spurred this live stream uh this was a month ago now so uh
5:18
Bill asked he wanted to if you know like rapid Weaver 9 or rap weever classic
5:24
whatever you want to call it um remember it added that little like built with rap rid Weaver badge or something I mean
5:31
honestly I don't remember exactly what it looked like like cuz I think like the first week I saw it I turned it off and
5:37
never looked at it again and um I don't use setup anymore so I no longer have
5:42
rapid re classic okay um but I kind of remember what it looked like and if we
5:48
go ahead and look at uh Weaver space right and there's a couple things
5:56
here let's see if we go to uhoh I I didn't create the announcement this week but we have like a little if you know
6:02
like there's like little announcements if you ever go to Weaver space sometimes see like mostly the deal of the week stuff right um and then also down here
6:09
at the bottom corner we have these little doohickeys right and I think the wrap reav badge is similar right so um
6:16
I'm going to kind of use this as an example um and we're just going to build out something like this probably like a
6:22
little image maybe a title and a bit of text and maybe make the the thing one
6:27
big old link um and we're going to kind of animate it in and then hopefully if we have time we'll
6:34
we'll play with call to action to control when and where we see this thing
6:39
right so uh hopefully that sounds cool if you guys have any ideas um let me know um in the chat and uh we will yeah
6:48
we will uh again I don't really have plans my plan was just kind of build this little
6:53
doy down there at the bottom all with uh we will do this with Foundation 6 okay um okay so let's go
7:01
ahead and uh let's get her done all right so I'm starting with a completely blank project file actually for fun
7:08
let's go ahead and um let's save this as so you guys can get this project
7:16
file badge and we're going to save it to my desktop all okay there we go all right
7:24
so now I got this thing um let's just call this uh home all right let's get
7:29
started we're going to add site Styles and um I like to slim down my
7:36
site Styles a little bit okay we're going to do that and
7:44
uh pretty much I'm just going to build this page it'll kind of just be a blank page we're just going to build out the
7:49
little notification thing but for first before we position it we have to build the notification right so um I'm just
7:56
going to add a little container here just to give us a little container to um work with I'm just going to do like p18
8:03
or something like that all right um so we wanted that thing to be one big link
8:10
right so um let's start off right and we have something called a link container
8:16
okay and that is a container that makes something one big old link okay um and
8:22
let's call this let's give this a class we're going to call it a Noth badge how about that okay I think that makes sense
8:33
um we are going to start creating some classes right so
8:39
um we're going to go our notification badge all right let's add uh let's make add a background
8:46
okay so we're going to um notif Dash badge okay and um just to make it stand
8:54
out a little bit I'm going to going to go ahead and do like um um
9:01
f like f8 something like that yeah it's like almost white right
9:08
okay um so we're going to do that um we want this thing to be pill shaped so I'm
9:14
just going to start chucking out some um some rounded Corners here so we're going to do oops I didn't no if- badge and
9:23
let's copy that so it's on our clipboard okay and um yeah radius 10 pixels that's
9:30
fine okay um let's add a box Shadow to it uh
9:41
Shadow right um let's do a little more subtle Shadow actually I'm just going to
9:47
reduce that down so it's something like that sure um and let's do a shadow
10:00
uh let's do one pixel down yeah I like that um a pixel
10:08
blur sure let's go with that okay um so there we
10:14
go and right I know I know that we're not we haven't previewed this yet I'm
10:19
just trying to get things done because I'm I know we got other stuff to do so um hopefully this is making
10:26
sense and let's add in in a well let's start building our layout actually let's
10:31
go ahead and um add in let's do two columns okay so
10:37
we have a two column layout First Column um I want it to be
10:42
um shrink to content right because we're going to add in a
10:48
um image okay and then um the second column is just going to be Auto okay
10:55
perfect so the second column is just going to fill up the rest of the the space
11:00
and doesn't matter that the device it's always going to be uh we're going to control on small and medium and large
11:06
it's always going to be the same okay ultimately I'll also create a width Swatch and constrain the width of this
11:12
okay um but let's see what we can do here all right
11:19
and right let's add in a
11:24
picture let's add in a picture over here right and um I don't let's add in the H
11:31
Stacks Pro why not boom right we got Stacks Pro right
11:37
and I'm going to scale the image I want to do um I how about like 64 yeah that
11:46
looks good all right so 64 pixels and then over here uh we're going to do a um
11:52
a header okay um let's do like uh sure H
11:58
H2 uh
12:06
um okay Stacks Pro is coming and then
12:12
um below that we're going to do a subheader uh that's going to be oops uh
12:20
let's do a H4
12:32
all right boom all right um obviously we'll have to tweak the header sizes because we
12:38
want those to be small right okay and uh let's see how this is looking I have no
12:45
clue how this is going to look so let's see all right so
12:50
um first off let's up one second let's do overflow
12:57
visible all right so here we go uh I need to add a little bit of gutter obviously there obviously uh we're going
13:04
to restrict the width as I as I suggested okay
13:14
um all right let's go ahead and add in let's see in this two column um let's
13:20
just go ahead and add a little bit of padding everywhere oh that's a lot I we just uh let's just add gutters
13:32
cool all right um all right let's um let's start
13:37
controlling let's let's tweak the header sizes of these right because we want those to be smaller it's going to be a little notification at the bottom right
13:43
so it can't be that large okay so um let's go into font style okay and we're
13:51
going to control the notification badge and what I'm going to do is I'm going to
13:56
control the H3 inside there so I'm going to do space H3 okay and this is going to
14:01
allow me to control the header okay another thing you can do is you can go ahead and add a custom class to the
14:06
header if you wanted um but yeah this works too um I think it's just a little bit more efficient less classes to have
14:13
to worry about okay um so let's see how
14:18
that works 16 pixels all right let's make it a little bit let's make it a little bit uh let's make weight bold and
14:25
let's make it like uh I 24 let's see how 24 looks
14:30
and weight is uh 600 that's still a little bit big
14:36
actually let's do like a
14:44
18 I think I'm good with that okay um one thing I noticed here let's
14:52
do well we'll inspect it later right um and then the H4 uh so we're going to do h H3 is H4
15:00
and let's do um 14 pixels on that and we're not going to affect the weight
15:07
actually let's do weight 400 to make sure it is just 400 sweet I like that um on these
15:15
headers I think I want to remove the margins on both of them actually just so
15:20
we have full control over everything excellent starting to look good right I think we need a little bit of padding
15:26
around the entire link container okay um instead of using utility class I'm going to go ahead and just add in a
15:33
padding Swatch just so that we have everything that we can look at okay
15:38
oops put that in there let just add like uh we try
15:48
eight that's not bad all right um so let's constrain the width now
15:57
okay and wonder if on on this what happens if I set this to also shrink to content I
16:05
don't know what's going to happen let's figure out right and what if I
16:10
do uh or we're going to try to use swatches only so we can see everything and not hide stuff inside utility
16:17
classes um I'm just playing around I I'm trying to whoops that was the wrong keyboard
16:23
shortcut um what was I doing all right okay I want to go here notification
16:30
we're going to do display inline block aha sweet okay that's exactly what
16:39
I wanted okay so uh let me explain what that is and also this this gutter I'm
16:45
not a huge fan of that so
16:53
big H yeah that gutter is too big but I'm not loving all right let's see in
17:01
here Let's do let's play with this horizontal alignment let's no vertical
17:06
alignment sorry we want vertical align middle there we go right okay I'm liking
17:14
okay this is starting to look better um I kind of like I don't know H does it look better at the top or the bottom
17:22
interesting um what do you guys think what do you think in the chat is there do we like
17:29
vertical align top maybe if I I add the top margin back
17:35
to that
17:40
header H that's going to be a personal preference right plus I think the the the issue is this image has some
17:47
transparent pixels around the edges right so um so that's why this text
17:53
doesn't look like it lines up well I think I think if this image went all the way to the edge it would look a little
17:58
bit bit nicer okay um but yeah h i I am going to cheat I'm
18:06
going to do like PT or I'm sorry like uh let's do a Mt colon
18:14
4 yeah baby okay I like that okay um I do want to increase let's see I think I
18:21
want the the the padding that we have on this to be a little bit more on on each
18:26
side um oops I open that in a browser my fingers betrayed me um I know I said
18:32
it wasn't going to use utility swatches but or utility classes but like this is a perfect example where it's like I
18:38
don't know here H okay I'm going to stick with it let's not use utility classes
18:43
sorry there's nothing wrong with the an utility classes but I just wanted to guys um I think some people get confused
18:50
when when they don't see all the Styles when I create something so um being able to see everything in a Swatch is is
18:56
convenient um I would probably have used the utility class in there if I was doing it okay because it's just quick and dirty right um let's go ahead and do
19:05
um notif badge H3 okay and we're going to
19:10
do um what was that no we want detailed top what I say it was what I four pixels
19:17
I think I did four pixels all right perfect four pixels um and then the padding around
19:25
the link container um I wanted that a little bit bigger
19:31
actually be honest what I want is I want the top and the bottom to be eight but I
19:36
want the left and right to be a little bit more let's do 12 let's see how that
19:45
looks yeah I like that for some reason it just feels off here again I think it's because this
19:51
this image has transparent pixels and um so it makes that Gap not match over here
19:57
kind of sucks um but anyway we're going to go with it um we're get we're getting
20:03
there okay to be honest like this this is quite large okay um probably in
20:09
retrospect I I think it should be even smaller but then if it's smaller then it's kind of harder to read right um oh
20:16
one thing I didn't talk about is how I made this the size it is right um I
20:21
didn't use any with swatches or anything right so how did I do that um so first off if we look at the
20:29
columns okay actually I'm curious if I do with auto here what's going to do oh it does the same thing okay um so
20:37
um in the in the columns you remember I did uh column one was shrink to content column two was Auto which means it'll
20:43
grow to the content okay if you know if you notice I did the same for shrink to content and it kind of looked the same
20:50
okay um so it effectively is the same layout okay um but the trick was when I
20:58
put this display Swatch on here and let's go ahead and just uh delete that really quick without that
21:05
display Swatch okay this link container goes the entire width because by default um a lot of
21:13
things um are set to grow the entire width of whatever they are inside there
21:19
are some exceptions like buttons and things of that nature um the link container itself is meant to always fill
21:26
up the space that you give it okay okay okay so what does this display mean
21:32
okay so this controls the a display property
21:39
within CSS and um if you notice there's a lot of options here okay um there's two
21:47
primary options that I or three actually obviously you can set to display none which will hide it okay um display block
21:55
that display property in CSS essentially means means um fill up the space you're
22:01
in so if you set something to display Block it's just going to fill up the area it's inside okay
22:08
um display inline and display inline block um both of those are essentially
22:15
the W uh ways of ensuring that the or I'm sorry the width is only the width of
22:22
its content so it's not going to be greedy with space and eat up all kinds of extra space okay okay uh we want it
22:30
to um essentially you know shrink down to
22:35
the content which is exactly what we did now the difference between inline and inline block I'm not going to go into
22:40
that right now it's kind of a complex there's a lot of little mini quirks most of the time I have to say I do use
22:46
inline block I mostly prefer that towards uh uh inline okay um yeah it
22:53
just depends on what you're doing in line is good for maybe for like um well even for like svgs I tend to use inline
23:00
block if I want them to be uh whatever but but yeah okay um so there we go all right so now uh it
23:09
shrunk okay to the size that we have now next up is um I'm happy with this
23:15
obviously in in the link container you would go ahead and and uh add a link to whatever you want to link to okay um
23:24
we'll just leave it as this for now because I don't need to link to anything um it is a link it'll link to
23:29
whatever but now we need to um go ahead and position this right so we need to position this down here okay so let's go
23:37
ahead and do that uh we're going to use a position
23:45
Swatch and we're going to go we're going to position the notive badge okay uh so what we're going to do
23:52
is we're going to uh position it relative to the browser okay so it's going to basically lift out of the
23:57
browser and we're going to make it relative to the browser and we want it at the bottom left right so let's start
24:04
with that right bottom left if you notice it is right all the way down at the corner
24:11
we don't necessarily want that we want a little we want to get a little breathing room now there's two things we can do um
24:17
we can either add then add a margin Swatch and add margin to this and then it will bump it up a little bit or we
24:23
can just add where we want it let's do like um I don't know uh 15 15 let's try
24:32
that uh maybe a little bit more how about like uh 24 oops
24:40
24 I kind of like that right a a little bit further up from the bottom um I tend
24:46
to notice when you want to put things in the corners okay
24:51
um from a design perspective for some reason if you have it like like I have this set to 1515 before and made it so
24:58
it is exactly perfectly positioned in the corner for some reason that just always feels off to me and I always have
25:05
to either add more to the uh left or to the bottom or the top of the you know
25:11
whatever it is to make it so it's not evenly in the corner like it's close and it's in the corner but yeah I I
25:18
personally find even when I'm like positioning let's say a close button if you put it exactly in a particular
25:24
corner it doesn't look great you have to either shift it up or shift it over a little bit for it to look good um so
25:30
yeah just a little bit of uh design tidbit for you um okay um yeah I think
25:38
that looks pretty good so now what we want to do is we want to animate this right because uh right now when I uh go
25:45
ahead and animate it or or load the page it's just always there and um hey maybe
25:52
that's what you want okay but um let's go ahead and try to make it a little bit better
25:58
okay so in order to animate this um there's so many ways we can do this um
26:04
if you want to go Advance you can do do like drift and do like some crazy animation in um we're going to keep it simple for right now though um and we're
26:13
just going to uh we're going to do let's look at
26:20
some animate let's do animate on S okay
26:29
um um that's not what I
26:35
wanted oh maybe it is let's see all right so um let's do uh not to fadge
26:42
okay um
26:50
and oh this is this is in the Swatch
26:56
pack and let's fade it in in from the side how about like fade in fade in
27:02
left animate once let's see um oh hold on a
27:12
second oh we want okay so we want start position to be Z
27:19
100 there we go okay so here we go so animate on scroll
27:26
start position is 100 okay and there we go now obviously we probably want some sort of delay right so we can delay this
27:33
by um let's do like uh well do like two
27:41
seconds voila okay and you can do more let's do like uh fade
27:47
in how about like fade in bottom
27:55
left right that kind of comes up like that right you can fade let's do like a how
28:00
about bounce in left what does that look like I kind of like that that's a little
28:07
fancy like it kind of grabs your attention right I I can dig that bounce in left is cool um it's been a while
28:13
since I played with some of these animations let's do like uh rotate up
28:21
left it works right basically you can play around with a lot of these things um
28:31
cool I like it so that's one way one one way we can do
28:36
it I like that actually I think my favorite so far was the bounce in what's zoom in left see what some of those
28:44
are nah slide in
28:53
left um yeah let's do let's stick with the bounce in left I like that
29:04
boom I thought that was cool oh yeah I like that one um so there we go that's cool um there's there's other ways we
29:10
can do this let's play around some other things um let's see what other swatches we got
29:19
um there's also Toggler on scroll right let's do something even
29:25
simpler um I'm going to I'm just going to turn this off okay just so that one's
29:31
off let's do some other animations um here let is I'm going to start
29:37
organizing some of these things so that we don't oops that's not what I
29:46
wanted right just going to move all those in
29:58
come on all right um base notif badge
30:07
Styles okay um and we're going to add oops U we want
30:13
these two in there that it's all the way in
30:21
there sweet and let's go ahead and add another uh pen he
30:40
all right um right let's add in another one uh let's do um transition okay
30:54
um and then we do is it
31:01
Toggler no not Toggler you probably could use Toggler as well but I think
31:06
Toggler on scroll would be
31:21
good well I'm thinking guys sorry let's see so we want to affect that uh
31:28
okay so this is um this is similar to animate on animate scroll okay but we
31:34
have a a little bit more granularity right so um let's set it up similarly um
31:40
okay so we're going to uh we want to Target the notification
31:46
badge um and we want to toggle the class um
31:54
let's do show okay and the trigger is also going to be
32:01
notification badge uh we want to trigger
32:14
once right so um so what this does uh let's just show I'm going to toggle a hide class on this um so basically we're
32:21
going to do um hide on this so it'll not show it okay uh just to kind of show you
32:27
how this works we're going to delay it by um let's do uh 1.5 seconds oops Let's
32:35
do let's do two seconds all right 2,000 all right so uh what this will do is
32:41
after two seconds this is going to toggle the hide class which means if it's there it's going to remove it if
32:47
it's not there it's going to add it okay um let's delete this transition for
32:53
now 1 1,00 2 1,000 boom okay so the hide
32:58
class if you didn't know is a utility class in in Foundation that hides something okay now it didn't have any
33:04
animation okay um I just wanted to kind of show you what what we can do okay so
33:11
um that had a class of hide it removed it okay 1 1,00 to 1,000
33:18
boom
33:24
okay um okay so now let's now let's get a little fancy here okay and
33:31
um let's I'm going to add in another pen okay and we're going to do um toggle
33:40
animation okay uh cuz we're going to need a couple different classes on this one a couple different things all right
33:46
I'm going to remove that hide class from here because that was just an example right um so now what we're want
33:52
to do is um I'm going to toggle a class um called
33:59
um show Dash
34:04
badge okay um so what I'm going to do is we're
34:10
going to add some other so basically uh by default I want to um have styles on notification badge
34:19
that hide it okay and uh so we're going to add in
34:26
there's a lot of things you can do you you can maybe uh you change his position Swatch I'm not going to do that because
34:31
I don't want to break existing demos okay but you can like have this uh left negative something so it's completely
34:38
off the screen um but what I'm going to do is I'm going to use something called a
34:43
transform okay and um I'm going to add in um uh
34:51
notif badge okay um so by default I want to
34:56
transform and and what I'm going to do is I want to move it okay and we are
35:03
going to move it uh X by
35:08
um percentages and do
35:15
um 150 okay let's try that so
35:22
now we can't see it okay I haven't turned on the animation yet but right now it's completely off the screen it's
35:28
actually over here somewhere okay uh because I transitioned it by 150% of the
35:34
size of the badge itself just to ensure that it's completely off the screen here just to show you I'm going to do 50 so
35:40
you guys can kind of see what it is so now I did -50 okay so it basically moved
35:45
it by 50% over okay now just to show you if I do 100
35:52
here okay you notice it's it still shows a little bit and that's because remember
35:58
I positioned it uh 15 pixels over so we still see 15 pixels of this right so we need to go a little bit more so um I
36:05
just did 150 just to kind of know that it's completely going to be gone out of out of the browser it exists but it's
36:12
over here okay so now um what I want to do is
36:19
remember when we add the show badge um class to this basically I want
36:25
to I want to change the transform to be move zero essentially okay so I'm do is
36:30
I'm going to copy and paste this actually we're going to move we're going to move that over there right so now we
36:35
have um this one okay and I'm going to do notif badge um I'm going to do dot
36:43
show badge okay oops if I can
36:48
type right now you can put in just show badge okay um and it can and this will
36:55
most likely work okay but um what I like to do here is I like to add two classes
37:01
this means um only do the notification bad the notif badge and the show badge
37:07
so if it has both classes okay you can do that right and essentially now I want
37:12
to uh move it to zero and for um for fun what I'm going
37:20
to do is oh well right let's just preview so 1 1,002 boom okay okay so now
37:29
that didn't animate Joe what the heck's going on okay so what it did was um after 2 seconds it it changed the
37:36
transform value okay but now we need to add the animations in okay and so what
37:42
we do that through a transition Swatch so if you ever want to transition
37:47
something from one Swatch style to a different Swatch style um that is going to be a
37:54
transition so I'm going to go ahead in here and what I'm going to do is I'm going to set the um Noth
38:02
badge okay and uh by default you can uh it'll transform all properties but if
38:07
you know you're only going to animate one particular property you can set it to be that so right in this example I
38:13
know that I'm um doing the transform property okay and so there we go so now
38:19
I can and you can do all kinds of animations let's do like e EAS in it EAS in is out okay and let's
38:26
do that so now now I I have a transition for the transform and it's going to speed is 1 second so it means it's going
38:32
to take the animation from one transform state to a different transform state is 1
38:40
second 1 1,00 2 1000 voila okay now that is a a simple use
38:49
case but you can do all kinds of stuff okay um because you you you're not
38:55
limited to um transforming or transitioning just the transition or
39:01
just the transform right I'm going to set this to all just for fun okay and let's play with some more stuff um so I
39:09
am going to uh let's add in let's say an
39:16
opacity okay and by default I want my
39:22
notification badge to have an opacity of zero
39:29
okay and then uh when it also has the show- badge class I want it to be
39:35
opacity 1 okay so now it's going to move and change its opacity 1 1,00 to 1,00
39:44
okay uh I don't know if you noticed that but it did it it was transitioning the
39:50
opacity while it was going okay here let's um let's exaggerate that a little
39:56
bit and let's do this like um 5 Seconds okay a 5sec
40:06
animation if you see that it it definitely it faded in as it was moving
40:12
right but again you can do all kinds of other stuff with transition you can do I don't know if you want to add a border
40:17
or if you want to change the colors or all kinds of stuff right so um I'm not
40:23
going to dive into more examples of what we can do here but yeah there we we go um I actually don't think this
40:29
particular example the opacity looks good so we're just going to stick with just the transition but I do think maybe
40:34
transitioning oops 1,000 oh oh I made that slow again
40:42
let's put that
40:48
Pack 1 1,00 2 1,000 boom cool now you you could also make it come up from the
40:54
bottom as well right um at that point you would turn or you would move it on the Y AIS instead of the x- axis right
41:01
so there we go um let me look at the chat so uh let's see
41:07
[Music]
41:16
uh will will that be a dynamic doohickey from a feed um so you could right so um
41:23
that's a great question you could generate these from feed if you wanted
41:29
okay here let's just do um are we uh we got we got time oh
41:35
before I do that I I want to show call to action okay um and uh after call to
41:41
action remind me and we'll I'll generate this from a feed okay actually you know what I
41:47
should do I should do um here let's do uh badge
41:57
with animation all right then what I'm going do is I'm going to uh
42:05
duplicate um with toggle okay so I'm going to go and
42:11
just really quick guys sorry I just want to we're just we're going to delete
42:19
that just delete that okay so now that we have
42:24
this I just want to have a example that has everything we
42:29
need boom right um now if you saw with the animate scroll it has definitely
42:35
some fancier animations okay so you that's a win okay um we definitely get
42:40
some fancier animations again you you can use drift to get even crazier okay we're definitely don't have time to do
42:47
that today um and let's go ahead I'm going to delete that okay and uh this
42:53
should be the toggle one yeah okay cool now now we have two demos
43:01
without you know two demos there we go um next up is we're going to do um
43:08
I'm going to duplicate this page um and we're going to use call to
43:18
action and right um so instead of toggle on scroll okay
43:25
um there is a a um there is
43:31
a Swatch for CTA Toggler this comes with my call to action
43:39
stack okay um so again this doesn't come with Foundation or the Swatch pack um
43:46
this comes from my call to action stack okay um all right so let's look at this
43:53
um so let's add our call to action to the page
44:00
okay and um trigger uh what we can do is we want to trigger something so let's
44:07
say um on page load okay so I want to trigger this on page load after 2
44:13
seconds oops not 22 seconds okay um and then what is our call to action so our
44:19
call to action is going to be um we are going to do a CTA Toggler okay and the
44:25
Toggler ID needs to match the Toggler ID here okay um so what we want to do is
44:32
here we want to do um we want to Target our notification badge and similar to
44:37
what we did in the toggle we want to toggle a class so we're going to toggle that same show badge
44:43
class okay awesome Okay now what's cool about
44:49
CTA okay um is what this stack does let's go back to
44:56
this example um with this toggle um example or with the animation one okay
45:02
these happen on every single page load no matter if the person visits this page
45:09
20 times they are always going to see this down at the bottom always
45:16
okay um but with CTA okay or with the call to action stack we get to control
45:24
that okay and so there's a lot of various occurrences so we can do once
45:29
per session okay and or we can do uh once
45:35
per a time period so we could be like you know once in 15 days so you know
45:40
that way we're not nagging our person right um I think one per once per session is good you can also do only
45:46
once only ever show a person a particular thing one time that's it
45:52
right so there's all kinds of cool stuff that we can do um for this particular one I I'd probably like once per session
45:58
I think is probably good okay um and you can set this to be always occur in preview um and uh and there we go so if
46:06
I go ahead and preview that it's going to show now we are in preview so it's it's going to always
46:13
show and preview so that we can preview this stuff actually here let's go ahead and say um let's turn that off that I'm
46:19
going to go ahead and say always show and preview that way if I preview this let's do it in the browser okay 1 1,00 2
46:25
1,000 and we get get it if I refresh 1 1,00 2 1000 we don't get
46:32
it okay because it it knows that it already displayed that to me and it's
46:38
not going to display that again now what's really cool is let's say I had this particular thing in a
46:45
partial it it also tracks it across Different Page loads right so you can have this show up on any page you want
46:52
okay and it will only show that it potentially one time time which is really
47:00
cool cool um I like that I think call to action is really cool um I think that's
47:06
a perfect use case for
47:13
this I save that now I do have to say that eventually um I do plan on having
47:20
uh here let's have that always show on preview
47:27
oh by the way um if you're curious what this is uh you probably want this is the occurrence ID so this is what this ID
47:34
tracks it across page loads right so we'd probably want to change this to like noce badge or something like that
47:39
so that if you have multiple different ctas um the occurrence ID is different
47:44
okay just so yeah just so that okay um cool I love
47:54
it now um with a cookie on the server no this does
47:59
not use cookies call to action does not use cookies um it uses um all all that
48:04
stuff is managed in the browser it is not done with cookies so you don't need to worry about gdpr and all that stuff
48:11
um call to action yeah no cookies here um there we
48:19
go good question thank you
48:25
Irwin um let's see uh feeds all right so let's
48:32
um let's see what we can do here let's duplicate this right um here let's
48:40
actually uh let's delete I'm going to duplicate the let's go for the simpler
48:45
the simpler page let's duplicate that okay and um
48:54
with feeds okay um now this uh applies to feeds and
49:00
total CMS okay I'm going to use feeds so that it all works inside of uh preview
49:07
okay um and I don't need to set up a blog or something like that okay but um
49:13
this what what what what I'm about to build with feeds here will definitely work with total cms1 and total CMS 3
49:20
okay um so let's go ahead and do that let's add a feeds all right we're going to add a
49:26
feed okay um actually be honest I don't even need this container anymore um
49:34
because yeah uh we don't need it but it's okay actually here I'm going to if
49:41
we here just so it's completely as bare as possible I'm actually just going to
49:46
update this project that way whoops here we don't need this container
49:52
that was just the initial design uh aspects of it right and uh so yeah we're going to do that let's just go ahead
49:59
and oop we don't need that just to prove to
50:04
you 1 1,000 there we go same thing okay um and feeds right so here all we're
50:12
just going to move that into there all right so essentially in feeds I want to dynamically generate this okay
50:20
um for just to keep this simple um I'm not going to change out the picture for right now um I'm going keep it as this
50:27
Stacks um but I'll change out the text okay um and let's go ahead and do a CSV
50:35
feed okay um and let's do
50:41
um heading and um text how about that or
50:46
sub uh yeah let's just call text okay heading and text and um so we're going
50:54
to go in here we're going to do option enter and we're going to do stacks
51:01
Pro is coming comma um you are going to love it
51:11
exclamation point and just for fun um let's do a second one um let's do
51:21
um hello live stream I hope you are
51:30
learning something today all right I just have those two
51:36
right so that's my CSV data uh and then uh this is my heading so I'm going to do
51:41
um heading and uh I'm not going to do a
51:48
full feeds tutorial here today guys but um and this was
51:55
text all right um now um in feeds uh we
52:00
we don't want to we only want to display one okay so I want to limit the count to
52:05
one okay um and maybe for sort let's Shuffle okay so that it it'll randomly
52:11
pick one of those two okay to display
52:17
so I think that should work no reason it shouldn't let's check it out 1 1,00 2
52:24
1,000 boom all right let's preview in the browser so I can just keep refreshing it 1 1000
52:30
to 1000 hello live stream 11000 to 1000 hello live stream
52:37
again I mean we only have two here so it's there we go so stack Pro is coming
52:43
pretty slick I uh I think this really really
52:49
awesome uh I like it it's pretty cool again this will work with with
52:57
total CS as well um either you can use the total CS integration built into feeds um if you're using total CS 3 you
53:03
can use a loop um with the new filtering stuff that I haven't that are shipping
53:09
this week um yeah that's pretty cool all I think that about rounds out
53:16
the uh this particular demo um and yeah look I got seven minutes to spare look
53:21
at that uh let me go ahead and let's check out the chat see if there's any uh any other questions here so we talked about
53:29
cookies yep cookie jar does cookie jar um call to action does not use
53:34
cookies actually cookie jar doesn't use cookies either um
53:40
okay uh be new to the Wednesday sessions are there projects available for later for reviewing and learning um yeah uh so
53:47
like this project I'm building right now I'll I'll plop it on the community um
53:52
and chances are I'll also take these pages and put it in the foundation demo project or or something like that as well um so that they're always in the
53:59
demo project that you can download from the foundation page um but yeah I will uh put a download link to this
54:05
particular project that I'm building right now um in uh on the community there's a post for this live stream on
54:11
the community you can get it from there um sometimes I'm good and I I remember
54:18
to do that other times I'm just kind of riffing and just doing stuff and I don't have a project to give so um yeah today
54:26
I maybe I was a little bit more organized I think something like this uh warrants a project file well um so you
54:31
can kind of learn from that and play around and do other things um but yeah I don't do that for every live stream okay
54:38
but I try to right um cool thank you guys I uh
54:46
hope you enjoyed today um really excited uh I think it went really well so thank
54:51
you Bill I don't know if you're on here bill um but thanks for um for the ideas
54:57
um for coming up with that and I appreciate I think it's really cool you you can then morph this by the way to all kinds of other things if you've ever
55:03
gone to my site and seen the um that deal of the week notification that I have you can do something larger like
55:09
that a card like a larger card it doesn't need to be this little thing um but I think it's a pretty cool idea I do
55:16
have to say I have plans to build a feature like this directly into call to
55:23
action okay right now call to action just in integrates with external services but um I think having um
55:30
something like this built into call to action uh will be a great thing that way I can I can maybe add a few other nice
55:37
little things to have such as maybe like a little cancel button or something like that um and yeah something that would
55:44
probably require a little bit of extra code um if you were to do it on your own like we're doing here today okay um you
55:51
probably could still do like a close button I don't know I could um
55:56
how could you do that you can have a close button that then um if when clicked on it toggle
56:04
along click click the close button and then it'll toggle that class um off that
56:10
show badge class here I got to try that okay let's let's bump in uh that's a cool idea I think I saw someone in the
56:17
comments earlier asking for like some sort of button okay let's um all right so we're going to do uh
56:25
we're going to duplicate all we'll just do that on the same page how about that uh well we'll do a new page uh
56:33
toggle close all right um all right so in order to do
56:40
this we need a close button okay um
56:46
so in Foundation um we have a close
56:52
button okay so I'm going to add close button
56:57
okay and let's just see how that looks 1 1,00 2
57:03
1,000 ah okay um um let's position that so um what
57:10
we're going to do is I think this has a class of clothes
57:16
hold on one second pretty sure it has a
57:22
inspect button close it's Clos dash button okay so um let's go ahead and do
57:28
that so we're going to I'm going to add it in a position
57:35
Swatch position maybe
57:44
transform on let's see all right so there's this close
57:50
button uh let's inspect that really quick okay and
57:57
if we look here there's the button okay and if we look at the Styles we can see
58:03
it has some top right so it's positioned absolute um right top so let's let's do
58:09
a position Swatch we're just going to override those particular values okay yeah I like that um you could also do a
58:16
transform Swatch and transform it up that would work too um and there's
58:21
always um more than one way to do things okay so uh we're going to we going to do
58:27
um notif badge space. close-button and I have a space here
58:34
because I want to Target the close button inside of notification bag uh notification badge okay um without the
58:42
space it means notific notif badge and close button and that's not the case here okay so the space matters big time
58:50
here very different all right we want position parent uh we want to be to top um I'm
58:57
going to do negative um we're going to have to test this out let's do like negative 16 not
59:04
60 um -6 pixels okay and WR actually I'm not
59:11
going to override the right I'm going to leave the right as it is um yeah let's try
59:16
that 1 1,00 2 1,00 oh okay I need the right okay um
59:24
let's do right let's do zero let's see what that looks like all uh I need to go up more to like
59:33
um 32 1 1,00 2 1,000 okay cool now uh you
59:40
can also adjust the font size on this guy right but okay so now uh we need to
59:46
add a toggle class here that when I click on this it's going to toggle the class on this okay so let's try that
59:56
actually let's go ahead and um let's also do a font style um and we're going to do um node
1:00:06
if- badge um do close
1:00:12
button okay and let's make it like
1:00:17
12 let's see 1 1,00 2 1,000 voila whoa
1:00:23
that's way too small
1:00:36
I kind of like the smallness there um we're going to go a 16 um I think it's now too high though all right it's too
1:00:44
high um actually no let's go with 18 we're going to go with
1:00:50
18 there and I now need to um adjust the position so that it's like uh 24 let's
1:00:57
try that 1 1,00 2 1,000 there we go oh perfect that's exactly what I was
1:01:03
actually looking for right so just a little a little close button um if you wanted you could add like a background color to it as well but um I think it's
1:01:10
just nice having just a little a little X right there right all so now we need to add the toggle so when we click on
1:01:16
that close button it'll it'll make this go away so we're going to
1:01:24
do um Talk Toggler okay and onclick so I
1:01:29
want to Target the notification badge okay um the toggle class um let's
1:01:37
see we want to toggle the show badge class okay and this is going to be the
1:01:43
trigger so the trigger is close button okay that's the class on the button
1:01:56
I think that's it so 1 1,00 2 1,000 boom we got a little close button click oh look at
1:02:04
that there we go now what this I mean with that though we have the same issue
1:02:09
with the CTA thing where um if if this were're using the CTA stack um even if you closed it then and then you had like
1:02:15
the logic um you know that says you know don't show again but it would be nice if
1:02:22
it was don't show again if they close it sort of thing and that sort of feature would have to be added to the call to
1:02:28
action stack which I think is something that it'll definitely be cool to have it's something I would like right so um
1:02:35
yeah that'll probably come in a it'll be a major upgrade to CTA um so but I don't
1:02:40
have any I haven't even started to work on that but today was kind of Al also a curse or like a proof of concept for me for that as well so hopefully hopefully
1:02:46
you enjoyed that um that was cool all okay let's see if there's any other questions uh before
1:02:52
we call it a day thank you Bill I I'm glad you enjoyed
1:02:59
you enjoyed this um let's see excellent thank you welcome Sean okay
1:03:05
cool um think we're going to call it a day guys um that was a really cool one I
1:03:10
think that was uh that was pretty epic I like today I think the format went well didn't really run into any hiccups um
1:03:17
which is fun well it's fun for me like I was I I hate struggling I'm sure all you guys hate struggling too right but um
1:03:24
I'm sure you guys enjoy I know you guys love it when when I struggle or I hit bugs and I'm like ah right but um cool
1:03:31
okay guys I'm off I'm back to working on cms3 so I can get that beta 7 ship this week um hopefully I'll see you on Friday
1:03:38
at the Hangouts super cool go to the community post some questions don't be scared help others um it's a great place
1:03:46
to be and I appreciate you being a part of the community so thank you very much have a great rest of your week go out
1:03:51
there and make your websites great bye