As the above implied, pansexual people can be attracted to anyone regardless of gender. Sometimes referred to as "gender blind," pansexual people also have attraction to transgender or, particularly, nobinary individuals. This is different than bisexual, where typically one is only attracted to two distinct genders along a binary.
Bisexuality is attraction to two or more genders, actually. And bisexuality includes trans people, even if someone's only attracted to the two binary genders because trans people aren't a separate gender. Pansexuality includes nonbinary genders more explicitly and means attraction to all genders. Some people choose to use the label pansexual because gender isn't a factor in their attraction to people, but that doesn't have to be true for you to identify as pansexual.