Usually after, though you can put a shadow on top of the line to set it and smudge it out. In some cases (a smoky eye, for example), you could put a thick layer of liner down, smudge it up toward the crease so it’s darkest at the lashes and then fades to nothing toward the crease, then layer a shadow on top to create a gradient effect.