Pansexual

I've always like girls since maybe 10+ and my two best friends are bi but I've never really felt like I've identified as being bisexual so at age 14 I came out to my friends as Pansexual but for me it means that when I love someone it's for who they are not their gender so being pan made sense to me as it's the attraction to basically any gender but I got loads of negative comebacks saying that being pan is against trans people and bi people which rlly confused me so I wanted to know u guys opinions on this thanks